Taking screenshots in Selenium in Python
To take screenshots in Selenium, when you are using Python to write your Automated testcases, please make use of the below code
from selenium import webdriver //You can use any Driver here be it Firefox or Chrome or anything browser = webdriver.Firefox() browser.get('http://www.google.com/') browser.save_screenshot('screenie.png') browser.quit()