Tag: java

62 votes
6 answers
2.3K views
How to set the DPI of Java Swing apps on Windows/Linux?

If you have an monitor with a DPI over 150 (such as Macbook Pro), you may also find the problem: the font on t

avatar
Fabian
0 1 0 9
asked 07 September, 2021
52 votes
9 answers
745 views
Openstreetmap: embedding map in webpage (like Google Maps)

Is there a way to embed/mashup the OpenStreetMap in your page (like the way Google Maps API works)? I need to

avatar
Winford
0 1 0 9
asked 07 September, 2021
52 votes
10 answers
970 views
Why aren't Java Collections remove methods generic?

Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remov

avatar
Percy
0 1 0 9
asked 07 September, 2021
63 votes
7 answers
3K views
Convert Enumeration to a Set/List

Is there some one-liner bridge method to dump a given Enumeration to java.util.List or java.util.Set? Somethin

avatar
Omar
0 1 0 9
asked 07 September, 2021
56 votes
9 answers
1.2K views
Difference between SPI and API?

What is the difference between Service Provider Interface (SPI) and Application Programming Interface (API)? M

avatar
Nidia
0 1 0 9
asked 07 September, 2021
52 votes
2 answers
1.7K views
Nightwatch count number of element

I'am a newbie with Nightwatch and i would like to count the number of element. I am able to do this but I

avatar
Thurman
0 1 0 9
asked 07 September, 2021
52 votes
1 answers
927 views
How do I prevent errors when clicking an element on the page but element is not clickable?

I am writing a test for an element on the page, but when I use pageObject.click("@MyElement) on the element, s

avatar
Emilia
0 1 0 9
asked 07 September, 2021
51 votes
1 answers
3.1K views
Nightwatch.js how to ignore main page? Or how to use window.location.host?

I'm a big noob in nightwatch.js but i have to decide this task. Please help me... I have a simple autotes

avatar
Cortez
0 1 0 9
asked 07 September, 2021
57 votes
2 answers
2.3K views
How .elements() works in nightwatch?

Considering I have multiple trs I want to pick one and edit value in it by clicking edit button bounded to it.

avatar
Trudy
0 1 0 9
asked 07 September, 2021
61 votes
0 answers
1.1K views
Nightwatch: wait for new email from gmail

I am needing to use Nightwatch to wait until a new email is received from Gmail containing a temporary passwor

avatar
Benton
0 1 0 9
asked 07 September, 2021
55 votes
0 answers
2.5K views
Cannot Run Nightwatch Tests in Safari

I have followed all instructions in the Nightwatch docs and followed many issues in github. I believe I have t

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
52 votes
2 answers
2.2K views
Making a custom group of defined chaining methods in js

The question is related to general js programming, but I'll use nightwatch.js as an example to elaborate

avatar
Robt
0 1 0 9
asked 07 September, 2021
64 votes
1 answers
1.6K views
Nightwatch - Cannot click on elements in Safari (Catalina)

Nightwatch: 1.3.4 Safari: 13.0 OS X: 10.15.3 I'm trying to set up my tests for Safari using Nightwatch.js

avatar
Solomon
0 1 0 9
asked 07 September, 2021
54 votes
0 answers
1.1K views
An error occurred while running .click() command on <input[type="submit"]>: from target frame detached in NightwatchJS

I'm getting this error in Nightwatch when trying to click submit in an iframe this is my code: .perform

avatar
Benton
0 1 0 9
asked 07 September, 2021
53 votes
1 answers
2.7K views
nightwatch :session not created: This version of ChromeDriver only supports Chrome version 81

Anyone know how to fix this error on the terminal when you run a test in nightwatch. My Chrome version is the

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
58 votes
1 answers
2.1K views
Nightwatch using chromedriver version 83 returns `undefined` global values on script

Hi to all and this is the first time I'm posting at StackOverflow. My nightwatch script with a chromedriv

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
64 votes
0 answers
811 views
ancestors.shift is not a function

I'm trying to get automated tests back up and running and having the following issue when I run a test. T

avatar
Dusty
0 1 0 9
asked 07 September, 2021
63 votes
0 answers
3.1K views
How to set default download directory in selenium Safari Capabilities?

I have being looking around for documentation related to setting Safari capabilities. The browser does not dow

avatar
Corey
0 1 0 9
asked 07 September, 2021
57 votes
0 answers
2.7K views
How to send a post request using CURL in nightwatch?

I have a use case requirement where i have to send a post request using a curl command before running ANY test

avatar
Denese
0 1 0 9
asked 07 September, 2021
51 votes
1 answers
932 views
How to add nested functions javascript in custom commands for Nightwatch testing- forEach -loop through elements

Hi I am new to javascript and Nightwatch, I am a manual tester who started doing automation about 6 months ago

avatar
Leonardo
0 1 0 9
asked 07 September, 2021