截屏错误 - 这是什么意思?

Screen capture error - what does it mean?

我正在使用这个电话:

driver.save_screenshot('/tmp/screen1.png')

导致此错误的结果:

selenium.common.exceptions.WebDriverException: Message: Could not convert screen
shot to base64 - Error: Unable to load canvas into base64 string

我找不到关于此错误的任何信息。

这个硒bug report has the exact error message you are reporting and was marked as a duplicate of this bug report

在两个错误报告中,无法截取屏幕截图的原因是网页的大小,这显然对于浏览器来说太大了,无法处理。对报告发表评论的人报告说 Chrome 似乎在 Firefox 失败的情况下有效。