I was wondering:
Why? This would add another cross-platform browser and hopefully could be headless with a new webkit rendering engine. Right now I am using SafariDriver on MacOSX or ChromeDriver. This kinda works, but chromedriver often bites me, when Chrome does it's autoupdate and breaks the chromedriver.
The project, which comes closest for a headless Webkit implementation (including taking screenshots) is, I think, phantomjs (QT-4.8 webkit) + ghostdriver (webdriver addon for phantomjs as a javascript implementation). Right now phantomjs has it's quirks with fonts and hyphenation () rendering.
Testing the QT5 browser examples, the font/shy rendering seems to have been fixed. Now I could either wait for phantomjs to catch up with qt5.
The other idea would be to have Java 7 installed, which includes Javafx 2.0 and implement a WebView which can be controlled by the webdriver-protcol as well. Newer JavaFx 2.0 version contain the possibility to take screenshots of JavaFX scenes, which would be helpful.
References:
Merry Christmas,
Jan
Yes, I built this: https://github.com/MachinePublishers/jBrowserDriver
It runs headless by default. Snapshots, xpath, and everything else work. No browser is required, just Java 8.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With