Friday, April 27, 2018

Functional Testing using Selenium and PhantomJS with Python

You may have a project requirement to improve performance of a test automation script within a short time period.It is not a good practice to go for a big code change at this kind of situation.To do that, one option is use headless browser instead of your ordinary web browser.Headless browser is a browser which doesn’t have GUI.When do headless browser testing we don’t see any GUI but program runs in background.because of that no need to wait until browser opens and load the web content to perform actions on web elements.Therefore you can save lot of test execution time.
PhantomJs is one of the widely used headless driver.This helps to run a bunch of test cases  without ever having to open a web browser.You can take screen shots of each step while test case is executing even though user doesn’t see the GUI