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

AppiumLibrary安装后,robotframe worke 倒入后一直显示红色,查看日志报错:ImportError: cannot import name 'InvalidArgumentException'。 网上找了好久,找到了解决方法: 在 C:Python27Libsite-packagesseleniumcommonexceptions.py中加入下面代码: class InvalidArgumentException(WebDriverException): """ """ pass 保存后,再重新倒入就OK了。
原文地址:https://www.cnblogs.com/ou-ya/p/9514381.html