Code to take screen shot in Selenium using python -
#!/usr/bin/env python
#!/usr/bin/env python
from selenium import webdriver
browser = webdriver.Firefox()
browser.get(’http://www.google.com/’)
browser.save_screenshot(’screenie.png’)
browser.quit()
browser.get(’http://www.google.com/’)
browser.save_screenshot(’screenie.png’)
browser.quit()
No comments:
Post a Comment