Selenium WebDriver_ Access the page without opening a browser

4

Does anyone know if I can access the page without opening a browser? That is, to do the tests without opening the browser.

How? If you can give me a light.

I'm using the Firefox browser

    
asked by anonymous 08.07.2016 / 20:52

1 answer

3

Yes. just install PhantomJS .

Then you change the webdrive of:

driver = webdriver.Firefox()

To:

driver = webdriver.PhantomJS()

The rest of the code I believe you will not need to change.

    
08.07.2016 / 21:02