Answers for "take screenshot of element selenium python"

1

selenium-screenshot python

from selenium import webdriver
from time import sleep

driver = webdriver.Firefox()
driver.get('https://www.python.org')
sleep(1)

driver.get_screenshot_as_file("screenshot.png")
driver.quit()
print("end...")
Posted by: Guest on July-01-2020

Code answers related to "take screenshot of element selenium python"

Python Answers by Framework

Browse Popular Code Answers by Language