问题描述
在 appium 中,我使用“self.driver.find_element_by_android_uiautomator(Uiobject)”来查找元素。
我可以使用 fromParent 来查找资源 ID 为“android:id/title”的“Abc”元素的兄弟元素,如下所示:“new UiSelector().text("Abc").fromParent(new UiSelector().resourceId ("android:id/summary"))"
但是,元素在页面的最后,必须使用UiScrollable才能找到。 我用它来查找 "Abc": "new UiScrollable(new UiSelector()).scrollIntoView(text("Abc"))"。
但是通过使用“new UiScrollable(new UiSelector()).scrollIntoView(text("Abc")).fromParent(new UiSelector().resourceId("android:id) /summary"))"
Appium 收到消息:“UiScrollable 没有 from Parent
方法”。我该如何解决?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)