【发布时间】:2019-12-13 16:30:51
【问题描述】:
我一直在尝试寻找方法滚动 gmail 的原生 android 应用程序,以通过其内容描述文本找到特定的电子邮件
但是我没有运气,我在这里尝试使用这个命令:
String content = "Unread";
driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\""+content+"\").instance(0))");
但这所做的只是滚动浏览所有内容。
我需要一个可以滚动以通过内容描述文本而不是显示文本来查找元素的命令。
有人可以帮忙吗?谢谢。
【问题讨论】:
标签: java android automation appium