使用一下方法滚动查找当前页文本

‘new UiScrollable(new

UiSelector().scrollable(true).instance(0)).scrollIntoView(new

UiSelector().text("查找的元素文本").instance(0));’

 

 

例:

def find_by_scroll(self):
return self.driver.find_element(MobileBy.ANDROID_UIAUTOMATOR,
'new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector()f.text("想要查到的文本").instance(0));')

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-12-02
  • 2021-08-17
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案