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
2
votes
0 answers
UI4J - How to get the status code, 200, 400, 500
When do a normal http request to a website, you would always be able to read the status code, 200, 400, 500 and so on.
Is this possible using UI4J?

mjs
- 21,431
- 31
- 118
- 200
2
votes
1 answer
ui4j - how to check if the page redirection load is done?
In my application, after button click from one page context, the page actually will be rendered/loaded twice: 1) from url specified by button or form 2) page redirection from server side by HTTP 304, in this case, unless I have current thread sleep…

Frank
- 49
- 3
1
vote
0 answers
Access Denied when loading URL in JavaFX WebView (ui4j)
I am using a JavaFX WebView (with ui4j library) to load a website. But I get this error in one of the urls that I am loading..
Access Denied
You don't have permission to access "{url}" on this server.
Reference #18.9d086a7c.1518661853.652b53a
It…

Aaron
- 2,591
- 4
- 27
- 45
1
vote
1 answer
How do you extract the URL from a page after redirecting it using ui4j?
I have written some code using ui4j, and it has redirected to another page. I need to extract the URL from the current page.
BrowserEngine browser = BrowserFactory.getWebKit();
Page page = browser.navigate("somewebsite");
//some oprations have been…

Aakash Sasikumar
- 27
- 6
1
vote
0 answers
ui4j how to handle scroll in headless mode
I am using ui4j library to scape a website, and a button click by emolument.click(), I am getting the following exception:
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at…

Frank
- 49
- 3
1
vote
0 answers
can not click a button using ui4j
i have this part of a website
![]()
Skaros Ilias
1
vote
1 answer
ui4j - Possible to screenshot the whole page?I would like to capture a screenshot of a website including content that you can only see if you scrolled down.
Is that possible?
EDIT:
I already tried…
![]()
int lawl is over 9000
1
vote
1 answer
Get the entire document innerhtmlIs there a way to get the innerhtml for the entire page, including html, head, body and so on.
I am only able to call page.getDocument().getBody().getInnerHTML() ... there is no page.getDocument().getInnerHTML() ... shouldn't there be ?
![]()
mjs
1
vote
1 answer
Thread safe and concurrent use, multiple instances?Looking at com.ui4j.api.browser.BrowserFactory it appears as if the getBrowser method can only return one instance, as is also documented.
This is quite problematic for anyone trying to write some sort of multi threaded crawler, as there will only…
![]()
mjs
0
votes
1 answer
How to instantiate interfaces in Javafx controller, from other packages?I'm implementing JavaFX application with web crawler ui4j. I get a null pointer exception in a controller class. I couldn't figure out how to instantiate objects which are interface classes in the initializing method.
I've already read…
![]()
Vinceere
0
votes
0 answers
Java ui4j. Can't find element to submitI have the following:
Login textbox....
Password textbox..
Login button......
0
votes
2 answers
java.lang.UnsatisfiedLinkError using ui4j in Linux MintI am getting the following exception when running my application in Linux Mint 18.1 Cinnamon 64-bit but do not get an error with the code in Windows. ElementImpl looks to belong to jre/lib/ext/jfxrt.jar and I've tried setting that with…
![]()
digital_archon
0
votes
0 answers
UI4J - How Do I Add Listeners on All Page Loads for All Elements Specified?How do I propagate the listeners on the next loaded page using UI4J?
https://github.com/ui4j/ui4j
For example, The below will navigate to Google and attach to all input tags a click listener, but I would like to have the binds reattached after…
![]()
JasonTolotta
0
votes
1 answer
UI4J - navigate show hide error bug ? Full sample code included.This below fails to navigate the second time, why?
Is there a bug in UI4J or something in my code/system? On Ubuntu 15.10. Using Java 8u40.
package mypackage.Web.tests.main;
import com.ui4j.api.browser.BrowserEngine;
import…
![]()
mjs
0
votes
0 answers
Javascript status code for a webpageI am building a web crawler that needs access to JS generated content.
Everything works fine.
Basically it is a full blown browser I can communicate with using code. I can execute Javascript code on most sites as well.
However, when do a normal…
![]()
mjs
|