robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

`Capture Page Screenshot` keyword #93

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 12 Feb 2010

The existing Capture Screenshot keyword takes a screenshot of the entire screen, but the new Capture Page Screenshot allows taking screenshots of the active page only. Unfortunately it works reliable on only with Firefox.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 12 Feb 2010

Done. The doc is here: http://robotframework-seleniumlibrary.googlecode.com/svn/trunk/doc/SeleniumLibrary.html#Capture%20Page%20Screenshot

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 12 Feb 2010

Andreas found some issues (like not having a default for filename) when testing Capture Screenshot keywords. See the comment 9 of issue 89 for more details. I fixed the problems in r412 but want to wait for confirmation before closing this.

spooning commented 9 years ago

Originally submitted to Google Code by @pekkaklarck on 15 Feb 2010

After the latest fixes and doc enhancements this ought to be done.

spooning commented 9 years ago

Originally submitted to Google Code by d... on 23 Feb 2012

Hello - I'm using iPhone Driver with robotframework and keep getting this error: [Warn] Keyword ' Capture Page Screenshot' could not be run on failure: AttributeError: 'WebDriver' object has no attribute 'save_screenshot' I look at the iphone webdriver.py and the iphone driver does not have save_screenshot(), instead it is using the get_screenshot_as_file() How do I fix this issue? Thanks

spooning commented 9 years ago

Originally submitted to Google Code by d... on 23 Feb 2012

Hello - I'm using iPhone Driver with robotframework and keep getting this error: [Warn] Keyword ' Capture Page Screenshot' could not be run on failure: AttributeError: 'WebDriver' object has no attribute 'save_screenshot' I look at the iphone webdriver.py and the iphone driver does not have save_screenshot(), instead it is using the get_screenshot_as_file() How do I fix this issue? Thanks

spooning commented 9 years ago

Originally submitted to Google Code by @yanne on 23 Feb 2012

I think you are using Selenium2Library, whose issue tracker can be found at: https://github.com/rtomac/robotframework-selenium2library, and this issue is best reported there.