朋友们,请帮忙!
我不知道如何做“等待直到”。
我正在将 Appium 与 UIAutomator 一起使用。
我的测试将等到新应用程序的页面加载并检查文本字段中的“文本 1”。
我在 UIAutomator 中有这样的参数:
text : Text 1;
recource-id: payment_content_title;
class: android.widget.TextView;
package: ru.mts.stm.mobilemts;
IntelliJ 说我的代码不正确:
WebDriverWait wait;
wait = new WebDriverWait(driver, 60);
wait.until(ExpectedConditions.textToBe(new MobileBy.ByAndroidUIAutomator(text),"Text 1"));
Thanks
使用以下代码进行等待。
WebDriverWait wait;
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("put id here")));
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)