[英]SendKeys taking to much time to enter text in Android App Automation Using TestNG,AVD Simulator,Appium Server
Here In my case , to enter text in Text Field
I am using driver.clear
to clear Text Field
and then driver.sendKeys
to enter text in Text Field
. 在本例中,要在“
Text Field
输入文本,我正在使用driver.clear
清除“ Text Field
,然后使用driver.sendKeys
在“ Text Field
输入文本。
But its taking too much time for WebDriver(Selenium)
and Appium Server
with real device and Android Virtual Device also. 但是,对于带有实际设备和Android虚拟设备的
WebDriver(Selenium)
和Appium Server
来说,这也花费了太多时间。
You can download GenyMotion , and here's a installation tutorial . 您可以下载GenyMotion ,这是一个安装教程 。
I'm working with it and it's very fast. 我正在使用它,而且速度很快。
Hope it will help. 希望它会有所帮助。
Try waiting for the element before sending it. 尝试在发送之前等待该元素。 Use this :
用这个 :
WebDriverWait wait = new WebDriverWait(driver, 15);
wait.until(ExpectedConditions.visibilityOfElementLocated(By
.className("...............")));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.