Taking screenshot with Selenium WebDriver in Python

 
  
from selenium import webdriver

browser = webdriver.Firefox() 
 
browser.get('http://www.google.com/')
 
'Taking screenshot in Specific Folder
 driver.save_screenshot('D\folder\filename.png')'
 
browser.quit()

Comments

Popular posts from this blog

Testing Webservice with SoapUI Having Windows Authentication

How to Re-run Failed Scenarios in Cucumber

Data Driven Testing Using Selenium -WebDriver in Python