尝试使用ChromeDriver 74在Galaxy S5上启动Samsung Interent浏览器。但是出现错误:
会话未创建:此版本的ChromeDriver仅支持Chrome 版本74
The Code for setting capabilities:
else if (browserType.equalsIgnoreCase("SAMSUNGBROWSER")) {
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("androidPackage","com.sec.android.app.sbrowse);
options.setExperimentalOption("androidActivity","com.sec.android.app.sbrowserSBrowserMainActivity");
options.setExperimentalOption("androidDeviceSocket","Terrace_devtools_remote;
options.setExperimentalOption("androidExecName", "Terrace");
options.setCapability("platformName", "Android");
options.setCapability("deviceName", "Galaxy S5");
options.setCapability(MobileCapabilityType.BROWSER_NAME, "Browser");
driver = new ChromeDriver(options);
webdriver = new RemoteWebDriver(new URL("http://localhost:4723/wd/hub"), options);