的SendKeys抽空太多时间在Android应用程序自动化输入文字使用TestNG,AVD模拟器,Appium服务器 [英] SendKeys taking to much time to enter text in Android App Automation Using TestNG,AVD Simulator,Appium Server

查看:805
本文介绍了的SendKeys抽空太多时间在Android应用程序自动化输入文字使用TestNG,AVD模拟器,Appium服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面就我而言,在文本字段我使用 driver.clear 输入文本清除文本字段然后 driver.sendKeys 文本字段中输入文本

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.

但其采取了的webdriver(硒)太多时间 Appium服务器与真实的设备和Android虚拟设备也。

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

推荐答案

尝试发送之前等待的元素。使用此:

Try waiting for the element before sending it. Use this :

WebDriverWait wait = new WebDriverWait(driver, 15);
    wait.until(ExpectedConditions.visibilityOfElementLocated(By
            .className("...............")));

这篇关于的SendKeys抽空太多时间在Android应用程序自动化输入文字使用TestNG,AVD模拟器,Appium服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆