Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium testing without browser

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?

like image 826
Mohyt Avatar asked Sep 29 '11 07:09

Mohyt


People also ask

Can I run Selenium without GUI?

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.

Can we run Selenium in background?

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.

Can I use Chromedriver without Chrome?

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.

Is Selenium only for web testing?

The simple answer is no. Selenium is designed to automate web applications, not desktop applications.


1 Answers

Chrome now has a headless mode:

op = webdriver.ChromeOptions() op.add_argument('headless') driver = webdriver.Chrome(options=op) 
like image 133
Stéphane Bruckert Avatar answered Sep 19 '22 21:09

Stéphane Bruckert