0 votes
1 view
in Devops and Agile by (19.8k points)

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?

1 Answer

0 votes
by (63.4k points)

It is quite easy to hide the browser without XVFB. Just install PhantomJS. Then, change this line:

driver = webdriver.Firefox()


driver = webdriver.PhantomJS()

The rest of your code won't need to be changed and no browser will open. For debugging purposes, use driver.save_screenshot('screen.png') at different steps of your code.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !