执行appium程序时遇到如下报错,ImportError: cannot import name 'InvalidArgumentException',
执行appium程序时遇到如下报错,ImportError: cannot import name 'InvalidArgumentException',
报错原因 selenium.common.exceptions.py中未定义InvalidArgumentException类,导致出现该报错,我的解决办法是
在selenium.common.exceptions.py中直接定义了InvalidArgumentException,代码如下
class InvalidArgumentException(WebDriverException): """ """ pass