android 在appium中滚动并单击元素

pod7payv  于 2023-10-14  发布在  Android
关注(0)|答案(1)|浏览(116)
String Organization = new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"textName\").instance(0));
driver.findElement(AppiumBy.androidUIAutomator(Organization)).click();

我试图向下滚动,直到它滚动的元素,但不能点击

ffx8fchx

ffx8fchx1#

String Organization = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("textName").instance(0))"; 

driver.findElement(AppiumBy.androidUIAutomator(Organization));

driver.findElement(By.id("Your_Selector_ID")).click();

相关问题