关于Selenium.common.exceptions.WebDriverException: Message: Invalid locator strategy: css selector 的问题

时间:2023-03-09 05:03:01
关于Selenium.common.exceptions.WebDriverException: Message: Invalid locator strategy: css selector 的问题

在执行脚本时报Selenium.common.exceptions.WebDriverException: Message: Invalid locator strategy: css selector 的错

出现这个问题时请先检查你的selenium版本是否和Appium-Python-Client 的版本互相兼容

如果你的selenium是3.4的版本,需要下载 Appium-Python-Client 2.8的版本

如果selenium是2.53.6的请一定要下载 Appium-Python-Client 2.6的版本