Ui4j is a web-automation library for Java. It is a thin wrapper library around the JavaFx WebKit Engine, and can be used for automating the use of web pages and for testing web pages.
Questions tagged [ui4j]
20 questions
0
votes
1 answer
Inserting executable scripts, large libraries. What is most efficient approach?
I'd like to insert a couple of large libraries in arbitrary sites, or on localhost, do some stuff, and get a result out.
What is the most efficient way to do this? Inserting a large text node is probably not the most optimal solution.
Also, is it…

mjs
- 21,431
- 31
- 118
- 200
0
votes
1 answer
ui4j NullPointerException when calling javascript window.scrollTo
I'm testing a website using ui4j. When I execute
page.executeScript("window.scrollTo(0,document.body.scrollHeight)");
to scroll to the end of the page I get the following NullPointerException:
Exception in thread "JavaFX Application Thread"…

Vincent
- 470
- 6
- 13
-1
votes
1 answer
Log to console from Javascript
Is it possible to log to the java console?
I've tried to supply an object with a method on it to use for logging but nothing shows up in debug console.
Am I missing something?
window.setMember("mylog", new Console());…

mjs
- 21,431
- 31
- 118
- 200
-1
votes
1 answer
ui4j help on list with tabs
I need to get some data from this webpage. i need to click on the tabs but i just cant get them as Elements
The code from the FF inspector is:

Skaros Ilias
- 1,008
- 12
- 40
-1
votes
1 answer
ui4j can not find element using java
I am trying to create an automation programm for a site using ui4j, but i got to a halt. Had use UI4J in the past and worked like a charm, but now it cant not find the item i need it to click on to move to an other page.
the code from the website is…

Skaros Ilias
- 1,008
- 12
- 40