执行appium程序时遇到如下报错,ImportError: cannot import name 'InvalidArgumentException',

报错原因 selenium.common.exceptions.py中未定义InvalidArgumentException类,导致出现该报错,我的解决办法是 

在selenium.common.exceptions.py中直接定义了InvalidArgumentException,代码如下

class InvalidArgumentException(WebDriverException):
    """
    """
    pass

执行appium程序时遇到如下报错,ImportError: cannot import name 'InvalidArgumentException',

 

 

 

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2021-06-03
  • 2021-06-26
  • 2021-12-23
  • 2021-04-13
  • 2022-01-21
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案