Appium android 虚拟机在内置浏览器地址栏输入网址后,使用 sendKeys(Keys.ENTER)没有反应

coconut · September 17, 2014 · Last by 黑水 replied at September 18, 2014 · 915 hits

Appium android 虚拟机在内置浏览器地址栏输入网址后,使用 sendKeys(Keys.ENTER) 没有反应,并且会 clear 整个地址栏

appium1.2.0.1,android4.3
请大神们指点指点~

driver.findElement(By.className("android.widget.EditText")).sendKeys("www.baidu.com");
driver.findElement(By.className("android.widget.EditText")).sendKeys(Keys.ENTER);
共收到 1 条回复 时间 点赞
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up