I use Selenium RC for testing. Now to perform a load test, I want to run parallel test cases. Is there any way to run them without opening a browser?
We can run Selenium (Firefox) webdriver without a GUI. This means that the execution has to be kicked in headless mode. The headless execution is popular now since it results in less consumption of resources. Firefox, without GUI, can be executed after we set the geckodriver path.
Selenium Webdriver can run in the background, i.e. without opening a browser window, by running it in Headless mode. To do this you need to add the required capability to the set-up code for the driver.
Users provided relevant link to confirm that, "YES" a full Chrome installation is needed in addition to the actual chromedriver. Show activity on this post. In my case, I am using PowerShell.
The simple answer is no. Selenium is designed to automate web applications, not desktop applications.
Chrome now has a headless mode:
op = webdriver.ChromeOptions() op.add_argument('headless') driver = webdriver.Chrome(options=op)
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