Eason
我刚根据webview的版本将Chromedriver放置到chromedirver文件夹,版本对应关系没有问题,但是切换时会提示异常,辛苦帮忙看下:
异常信息: io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: invalid argument: cannot parse capability: goog:chromeOptions from invalid argument: unrecognized chrome option: androidDeviceSerial Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'G01D-01-0163', ip: '192.168.20.93', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.2' Driver info: io.appium.java_client.android.AndroidDriver Capabilities {adbExecTimeout: 60000, automationName: UIAutomator2, browserName: , chromedriverChromeMappingFile: chromeDriver/version.json, chromedriverExecutableDir: chromeDriver, databaseEnabled: false, desired: {adbExecTimeout: 60000, automationName: UIAutomator2, browserName: , chromedriverChromeMappingFile: chromeDriver/version.json, chromedriverExecutableDir: chromeDriver, disableSuppressAccessibilityService: true, goog:chromeOptions: {androidProcess: com.tencent.mm:tools, args: [], extensions: []}, newCommandTimeout: 3600, noReset: true, platformName: android, recreateChromeDriverSessions: true, skipLogcatCapture: true, systemPort: 53063, udid: VEG5T20430011271, uiautomator2ServerInstallTimeout: 30000}, deviceApiLevel: 29, deviceManufacturer: HUAWEI, deviceModel: ANA-AN00, deviceName: VEG5T20430011271, deviceScreenDensity: 480, deviceScreenSize: 1080x2340, deviceUDID: VEG5T20430011271, disableSuppressAccessibilityService: true, goog:chromeOptions: {androidProcess: com.tencent.mm:tools, args: [], extensions: []}, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 3600, noReset: true, pixelRatio: 3, platform: LINUX, platformName: ANDROID, platformVersion: 10, recreateChromeDriverSessions: true, skipLogcatCapture: true, statBarHeight: 129, systemPort: 53063, takesScreenshot: true, udid: VEG5T20430011271, uiautomator2ServerInstallTimeout: 30000, viewportRect: {height: 2082, left: 0, top: 129, width: 1080}, warnings: {}, webStorageEnabled: false} Session ID: 37611a7a-da84-4a57-9b0a-08ffac653623