简体   繁体   English

使用TestNG,AVD Simulator,Appium Server,SendKeys需要花费大量时间在Android App Automation中输入文本

[英]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.

相关问题 在 Appium (Android) 中使用 sendkeys() 在字段中输入值需要花费太多时间 - Its taking too much time to enter value in field using sendkeys() in Appium (Android) Sendkeys()不会在使用Appium的Android App中释放Element - Sendkeys() not release the Element in Android App using Appium Android Studio 2.1.1应用花费太多时间来启动应用 - Android studio 2.1.1 app taking too much time to launch app 如何使用Appium在Android应用弹出窗口中输入评论 - How to enter Comment in Android app pop up using Appium Android应用需要大量时间从sqlite加载数据 - Android app taking much time to load data from sqlite 无法在 Appium 自动化中找到 Android 应用程序的 Snackbar - Not able to find Snackbar of Android app in Appium automation setValue和sendKeys引发错误,以使用Appium和Android在EditText中设置文本 - setValue and sendKeys throw error to set a text in EditText with Appium and Android Android上的Appium - SendKeys到EditText也键入默认文本 - Appium on Android - SendKeys to EditText also types default text 无法在 appium 中使用 SendKeys 方法输入数据 - Not able to enter the data with SendKeys Method in appium Android Appium:无法在文本框中输入文本 - Android Appium : Not able enter the text in textbox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM