Selenium with Python:如何提高全屏屏幕截图的分辨率?

2024-06-16 09:20:05 发布

您现在位置:Python中文网/ 问答频道 /正文

使用Selenium和Python可以提高全屏屏幕截图的分辨率吗?我目前采用以下方式截屏,分辨率似乎很低:

browser = webdriver.Chrome('C:\Python27\chromedriver.exe')
browser.maximize_window()
browser.get("http://www.google.com")
browser.save_screenshot("savedImage.png")

Tags: browserget屏幕selenium方式分辨率chromewindow