通过铬铁、硒电子应用程序

2024-10-03 17:17:08 发布

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

我的电子截图似乎还不支持。在

https://github.com/electron/electron/issues/4234

好像是这样chrome.自动化Electron还不支持API;所以我想知道在运行Selenium测试时如何截屏?在

我将Chromedriver与Selenium绑定一起用于python;我确实尝试过使用

driver.save_screenshot()
driver.get_screenshot_as_file()

他们都给了我同样的例外:

^{pr2}$

有没有其他方法可以截图或者我必须等待chrome.自动化在电子方面?在


Tags: httpsgithubcomapisavedriverselenium电子