点击移动浏览器

时间:2018-04-06 07:16:28

标签: selenium appium

我已经启动了Remotewebdriver,用于在移动设备中使用带有appium的HPE移动中心启动驱动程序。之前工作正常。更新Chrome驱动程序后,无法单击移动浏览器元素。

启动移动浏览器的代码。

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("userName", ReadProperties.Properties("MobileUsername"));
capabilities.setCapability("password", ReadProperties.Properties("MobilePassword"));
capabilities.setCapability("udid", ReadProperties.Properties("MobileUID"));
capabilities.setCapability("browserName", ReadProperties.Properties("MobileBrowser"));
capabilities.setCapability("platformName", ReadProperties.Properties("MobilePlatform"));
log.Info(capabilities.getVersion());
mobile_driver = new RemoteWebDriver(new URL(""+ReadProperties.Properties("MobileURL")+"/wd/hub"),capabilities);

执行日志后:

  

2018-04-06 11:41:45,528错误t.C.Log [main] ||   NoSuchElementException:Object ICA Gruppen Home>语言标签   未找到!未知错误:呼叫功能结果缺失'值'

(Session info: chrome=65.0.3325.109)
(Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.14393 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: 'SEV000268', ip: '10.59.66.86', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_162'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {bootstrapPort: 28741, browserName: chrome, databaseEnabled: false, desired: {bootstrapPort: 28741, browserName: chrome, deviceName: ZX1G428PXX, newCommandTimeout: 300, noReset: true, password: ******, platform: ANY, platformName: ANDROID, systemPort: 28741, udid: ZX1G428PXX, userName: *******, version: }, deviceName: ZX1G428PXX, deviceUDID: ZX1G428PXX, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 300, noReset: true, password: Infosys777, platform: ANY, platformName: ANY, platformVersion: 7.1.1, systemPort: 28741, takesScreenshot: true, udid: ZX1G428PXX, userName: achu.s.pillai@ica.se, version: , warnings: {}, webStorageEnabled: false}
Session ID: 10882ea8-4cbe-4b77-ac6a-5355020abf96 || 

0 个答案:

没有答案