'WebDriver' object has no attribute 'get_screenshots_as_file' 错误

'WebDriver' object has no attribute 'get_screenshots_as_file'
根据错误提示点击查看调用的方法,查看调用的方法是否有误,这里我的这个错误是说webdriver没有get_screenshots_as_file这个属性,去查看是否调用有误,不然就是书写错误,这个一般不会报错,我这里是因为get_screenshots_as_file中  screenshot后面多加了一个s。桑心,铭记。

猜你喜欢

转载自blog.csdn.net/harryzzz/article/details/79101978