1.夜神模拟器 5.1+idea+selenium3.4+java-client5.0
具体报错 org.openqa.selenium.InvalidSelectorException: Locator Strategy 'css selector' is not supported for this session
For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'DESKTOP-6O25FTG', ip: '172.16.16.134', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_172'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{appPackage=com.sankuai.meituan, deviceScreenSize=720x1280, networkConnectionEnabled=true, statBarHeight=38.0, warnings={}, viewportRect={top=38.0, left=0.0, width=720.0, height=1242.0}, databaseEnabled=false, deviceName=127.0.0.1:62001, platform=LINUX, deviceUDID=127.0.0.1:62001, appActivity=com.sankuai.meituan.activity.MainActivity, desired={appPackage=com.sankuai.meituan, appActivity=com.sankuai.meituan.activity.MainActivity, platformVersion=5.1, browserName=, platformName=Android, deviceName=127.0.0.1:62001}, platformVersion=5.1.1, pixelRatio=1.5, webStorageEnabled=false, locationContextEnabled=false, takesScreenshot=true, browserName=, javascriptEnabled=true, deviceScreenDensity=240.0, deviceModel=HUAWEI MLA-AL10, platformName=Android, deviceApiLevel=22.0, deviceManufacturer=HUAWEI}]
Session ID: cf1cf954-2190-4ce4-8669-b90828e7bf49
*** Element info: {Using=id, value=com.sankuai.meituan:id/citylist_search}


↙↙↙阅读原文可查看相关链接,并与作者交流