📌  相关文章
📜  如何使用 selenium webdriver python 代码示例截取屏幕截图

📅  最后修改于: 2022-03-11 14:45:55.320000             🧑  作者: Mango

代码示例1
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...")