AppiumLibrary库倒入后显示红色,日志报错:ImportError: cannot import name 'InvalidArgumentException'

AppiumLibrary安装后,robotframe worke 倒入后一直显示红色,查看日志报错:ImportError: cannot import name 'InvalidArgumentException'。 网上找了好久,找到了解决方法: 在 C:\Python27\Lib\site-packages\selenium\common\exceptions.py中加入下面代码: class InvalidArgumentException(WebDriverException): """ """ pass 保存后,再重新倒入就OK了。
posted @ 2018-08-21 21:25  Ou丫  阅读(1369)  评论(0)    收藏  举报