2 ms·
I'm currently writing a Java-based headless browser, https://github.com/MachinePublishers/jBrowserDriver https://github.com/MachinePublishers/jBrowserDriver Be
by logn 12y ago
I'm currently writing a Java-based headless browser, https://github.com/MachinePublishers/jBrowserDriver https://github.com/MachinePublishers/jBrowserDriver
Beware it's Affero GPL.
It implements most of the Selenium WebDriver APIs. Currently it's a work in progress especially in regard to persistent tracking. But it's capable of addressing many issues raised in the article. As a bonus, for Java users it's a lot faster than GhostDriver at least.
Header ordering: https://github.com/MachinePublishers/jBrowserDriver/blob/master/browser/src/com/machinepublishers/jbrowserdriver/Settings.java https://github.com/MachinePublishers/jBrowserDriver/blob/mas...
DOM objects (user-agent, navigator, Canvas, Date) are addressed by injecting the response content: https://github.com/MachinePublishers/jBrowserDriver/blob/master/browser/src/com/machinepublishers/jbrowserdriver/StreamHandler.java https://github.com/MachinePublishers/jBrowserDriver/blob/mas...
JS Engine: about 1 year newer than PhantomJS. Java ships with Qt5 WebKit.
I'll have some significant updates in the next couple of days surrounding all these issues.
- jacquesm 12y agoThat's a super piece of work! Thank you, I'll probably become one of your users.