Vrtgs/thirtyfour

Running the Test without Existing Browser (HtmlUnitDriver)

Opened this issue · 1 comments

I need to know if there is anyway to run the automated test without an existing browser? Somehow I need to run the test on a machine which has no GUI. Is there any way to approach this?

I've read Selenium on Java has a feature to run without browser running: HtmlUnitDriver

You should be able to run using a real browser under something like xvfb. Also see the official docker images for selenium. There's also some documentation here:
https://stevepryde.github.io/thirtyfour/tools/selenium.html#setting-up-docker-and-selenium

As for HtmlUnitDriver, it's not implemented at the moment but if you know the shape of the capabilities struct you could probably get it working.