在Chrome商店SELENIUM PYTHON中获取完整的屏幕截图

时间:2020-05-18 12:50:58

标签: python selenium selenium-chromedriver screenshot

我正在尝试使用selenium和python 3保存chrome商店页面的全屏截图。

我在网上搜索了不同的答案,无论尝试什么,我一直只获得“标题”部分。好像页面没有滚动到下一个“部分”。

我尝试在页面内部单击以确认其焦点对准,但这没有帮助。 尝试使用针迹进行解答,并导入了屏幕截图和图像。

我当前的代码是:

ob = Screenshot_Clipping.Screenshot()
driver2 = webdriver.Chrome(executable_path=chromedriver)
url = "https://chrome.google.com/webstore/detail/online-game-zone-new-tab/abalcghoakdcaalbfadaacmapphamklh"
driver2.get(url)
img_url = ob.full_Screenshot(driver, save_path=r'.', image_name='Myimage.png')
print(img_url)
print('done')
driver2.close()
driver2.quit()

但这给了我这张照片: 我究竟做错了什么? enter image description here

0 个答案:

没有答案