问题描述:
大佬们好,当前我使用sonic尝试切换webview时,会提示异常,已检查了chromedriver版本,看起来都是对应上的。实在没有头绪,请求给个思路。。
Server版本:v1.4.1-beta
Agent版本与部署方式:v1.4.1-beta,jar包部署
手机型号与系统版本:红米k30、安卓11


version.json:
{
"103.0.5060.24": "103.0.0",
"86.0.4240.22": "86.0.0",
"89.0.4389.23": "89"
}
日志如下:
[android-run-step-task-0-5-jjei5xzlkvga4puk] org.cloud.sonic.agent.tests.LogUtil : {"msg":"step","des":"","log":"异常信息: 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: 'DESKTOP-9KRUA1T', ip: '2.0.0.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '18.0.1.1'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities {adbExecTimeout: 7200000, automationName: UIAutomator2, browserName: , chromedriverChromeMappingFile: webview/version.json, chromedriverExecutableDir: webview, databaseEnabled: false, desired: {adbExecTimeout: 7200000, automationName: UIAutomator2, browserName: , chromedriverChromeMappingFile: webview/version.json, chromedriverExecutableDir: webview, disableSuppressAccessibilityService: true, goog:chromeOptions: {androidProcess: com.tencent.mm:tools, args: [], extensions: []}, newCommandTimeout: 7200, noReset: true, platformName: android, recreateChromeDriverSessions: true, skipLogcatCapture: true, systemPort: 21333, udid: jjei5xzlkvga4puk, uiautomator2ServerInstallTimeout: 600000}, deviceApiLevel: 30, deviceManufacturer: Xiaomi, deviceModel: M2006J10C, deviceName: jjei5xzlkvga4puk, deviceScreenDensity: 440, deviceScreenSize: 1080x2400, deviceUDID: jjei5xzlkvga4puk, disableSuppressAccessibilityService: true, goog:chromeOptions: {androidProcess: com.tencent.mm:tools, args: [], extensions: []}, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 7200, noReset: true, pixelRatio: 2.75, platform: LINUX, platformName: ANDROID, platformVersion: 11, recreateChromeDriverSessions: true, skipLogcatCapture: true, statBarHeight: 96, systemPort: 21333, takesScreenshot: true, udid: jjei5xzlkvga4puk, uiautomator2ServerInstallTimeout: 600000, viewportRect: {height: 2260, left: 0, top: 96, width: 1080}, warnings: {}, webStorageEnabled: false}
Session ID: 4d8ce96a-351b-4786-a56f-ee49bb8445e9","time":"16:11:52","rid":0,"udId":"jjei5xzlkvga4puk","status":3,"cid":0}