Screenshot local page with Selenium and PhantomJS
I feel silly now.
I needed another forward slash
driver.get("file:///
I am using Selenium with PhantomJS as the webdriver in order to render webpages using Python.
The pages are on my local drive.
I need to save a screenshot of the webpages.
Right now, the pages all render completely black.
The code works perfect on non-local webpages.
Is there a way to specify that the page is local?
I tried this:
driver.get("file://...
but it did not work.
Thanks!