appium如何打开Genymotion(android)中的UC浏览器 5
DesiredCapabilitiescapabilities=newDesiredCapabilities();capabilities.setCapability(C...
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "Android Genymotion");
capabilities.setCapability("platformVersion", "4.3"); //
capabilities.setCapability("browserName", "chrome");
capabilities.setCapability("appPackage", "com.android.browser");
capabilities.setCapability("appActivity", ".BrowserActivity");
//capabilities.setCapability("autoAcceptAlerts",false);
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); 这段代码可以打开谷歌浏览器,如何打开在模拟器中下载的UC浏览器呢,求解? 展开
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("deviceName", "Android Genymotion");
capabilities.setCapability("platformVersion", "4.3"); //
capabilities.setCapability("browserName", "chrome");
capabilities.setCapability("appPackage", "com.android.browser");
capabilities.setCapability("appActivity", ".BrowserActivity");
//capabilities.setCapability("autoAcceptAlerts",false);
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); 这段代码可以打开谷歌浏览器,如何打开在模拟器中下载的UC浏览器呢,求解? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询