Appium运行报错InvalidSelectorException: Locator Strategy ‘css selector’ is not supported for this session
一、一般都是Appium的版本不匹配造成,更新为最新版本即可,我将java-client更新为最新版本后问题解决
		<dependency>
            <groupId>io.appium</groupId>
            <artifactId>java-client</artifactId>
            <version>RELEASE</version>
        </dependency>
二、另外,在Appium的GitHub-issuehttps://github/appium/java-client/issues/1084中发现另一个说法,可能有的人是这种原因造成的

  • 大概意思就是说最新版的java-client已经包括了selenium依赖,将依赖中的selenium-java移除,仅适用最新版的java-client即可。

更多推荐

InvalidSelectorException: Locator Strategy 'css selector' is not suppo