'WebDriver' object has no attribute 'get_screenshots_as_file' 错误
2018-01-18 23:57
716 查看
'WebDriver' object has no attribute 'get_screenshots_as_file'
根据错误提示点击查看调用的方法,查看调用的方法是否有误,这里我的这个错误是说webdriver没有get_screenshots_as_file这个属性,去查看是否调用有误,不然就是书写错误,这个一般不会报错,我这里是因为get_screenshots_as_file中 screenshot后面多加了一个s。桑心,铭记。
根据错误提示点击查看调用的方法,查看调用的方法是否有误,这里我的这个错误是说webdriver没有get_screenshots_as_file这个属性,去查看是否调用有误,不然就是书写错误,这个一般不会报错,我这里是因为get_screenshots_as_file中 screenshot后面多加了一个s。桑心,铭记。
相关文章推荐
- web.py 启动时候出现AttributeError: 'module' object has no attribute 'inet_pton'错误
- web.py 启动时候出现AttributeError: 'module' object has no attribute 'inet_pton'错误
- AttributeError: 'WebDriver' object has no attribute 'switchTo' 解决方法
- python 编译错误TypeError: 'builtin_function_or_method' object has no attribute '__getitem__'
- 部署爬虫到scrapy cloud上出现'_sre.SRE_Match' object has no attribute '__getitem__'的错误
- 关于import tensorflow as tf的错误:AttributeError: type object 'NewBase' has no attribute 'is_abstract'
- appium driver.swipe () 实现界面滑动执行报错 AttributeError: 'WebDriver' object has no attribute 'swipe'
- AttributeError: 'WebDriver' object has no attribute
- tensorflow报错:AttributeError: 'module' object has no attribute 'get_or_create_global_step'
- Django admin 产生'WSGIRequest' object has no attribute 'user'的错误
- Python脚本报错AttributeError: ‘module’ object has no attribute’get’解决方法
- 使用vectorizer.fit_transform时出现AttributeError: 'file' object has no attribute 'lower'
- 'function' object has no attribute '_name_'错误
- 怎样处理“error C2220: warning treated as error - no object file generated”错误
- 跑faster rcnn测试时遇到错误Attribute Error: 'NoneType' object has no attribute 'astype'
- openstack:''Client'' object has no attribute ''service_catalog''错误
- python运行不了 AttributeError: module object has no attribute getdefaultlocale
- sencha touch中出现JS错误Uncaught TypeError: Object [object Object] has no method 'getForm'
- 关于Srapy框架运行的错误AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
- 【转载】C#调用python文件时出现'module' object has no attribute '_getframe'