导入AppiumLibrary报错: ImportError: cannot import name 'InvalidArgumentException
报错原因 selenium.common.exceptions.py中未定义InvalidArgumentException类,导致出现该报错.
解决办法:
在selenium.common.exceptions.py中直接定义了InvalidArgumentException,代码如下,在文件\Lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\common\exceptions.py中加入以下代码:
class InvalidArgumentException(WebDriverException):
"""
"""
pass

保存后再重新导入appiumLibrary,颜色显示黑色,表示导入成功

相关文章:

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