Create screenshot with Python Selenium Webdriver

The following example show how easy you could make screenshots with Python Selenium Webdriver.

Precondition

Example

The MyLibrary.py could be used on different places.

After running the test you should see the folder “/screenshot” with the picture.