BannerMatt
BannerMatt

Reputation: 43

Screenshot local page with Selenium and PhantomJS

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

Answers (1)

BannerMatt
BannerMatt

Reputation: 43

I feel silly now.
I needed another forward slash
driver.get("file:///

Upvotes: 1

Related Questions