简体   繁体   中英

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 .

But its taking too much time for WebDriver(Selenium) and Appium Server with real device and Android Virtual Device also.

You can download GenyMotion , and here's a installation tutorial .

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("...............")));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM