Vrtgs / thirtyfour

Selenium WebDriver client for Rust, for automated testing of websites
Other
1.05k stars 77 forks source link

Running the Test without Existing Browser (HtmlUnitDriver) #201

Open c0d3sling3r opened 8 months ago

c0d3sling3r commented 8 months ago

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

stevepryde commented 8 months ago

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.