python selenium.common.exceptions.InvalidSelectorException: Message: Locator Strategy 'css selector' is not supported for this session

或者

 cannot import name 'webdriver' from 'appium'

 

原来是我的文件叫 appium.py 如果叫selenium.py,也可能出错,导致Python会先导入这个文件,然后再导入标准库里面的selenium.py。

 

把当前目录下的文件删除或者重命名之后再run正常。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2022-01-21
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案