Reputation: 43
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!
Upvotes: 0
Views: 638
Reputation: 43
I feel silly now.
I needed another forward slash
driver.get("file:///
Upvotes: 1