We will have to make sure that we have XVFB running on the machine.
Open a terminal.
We need to export the display so that everything that is launched from it uses the one that we have set up earlier. We do this with:
Now we just need to run our tests. You will see that the browser may launch in the dock but it should not actually be visible.
What just happened?
We have successfully managed to get our tests running using XVFB. We saw that the tests that we were running, and launching a browser on our displays, still finished with the same results as before.
This can be useful for situations where you may have your tests running on change and you know that the browser will not try stealing focus.
Have a go hero - running tests in parallel with XVFB
Now that we know how to run tests with XVFB, try getting this running while running tests in parallel and see how it works together!
Selenium Related Interview Questions
|SILK TEST Interview Questions||QTP Interview Questions|
|JMeter Interview Questions||Automation Testing Interview Questions|
|Software testing Interview Questions||JUnit Interview Questions|
|TestNG Interview Questions||SAP Testing Interview Questions|
|Selenium WebDriver Interview Questions||Selenium IDE Interview Questions|
|QUnit Testing Interview Questions||Performance Testing Interview Questions|
|Hadoop Testing Interview Questions|
Getting Started With Selenium Ide
Overview Of Selenium Webdriver
Working With Webdriver
Getting Started With Selenium Grid
Advanced User Interactions
Working With Html5
Migrating From Remote Control To Webdriver
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.