Wednesday, 15 April 2015

python 3.x - Screenshot local page with Selenium and PhantomJS -


I am using selenium with the programmos s as a WebDrive to render webpages using Python. Pages are on my local drive. I have to save screenshots of webpages. Now, they provide all pages completely black. This code works perfectly on non-local webpages.

Is there a way to specify that the page is local? I tried this: driver.get ("file: // ... but it does not work.

Thanks!

I'm feeling stupid now.
I need another slash forward - driver.get (" file: /// < / Html>

No comments:

Post a Comment