滚动并单击appium中的元素

问题描述 投票:0回答:1

字符串组织 = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("textName").instance(0))"; driver.findElement(AppiumBy.androidUIAutomator(组织)).click();

我正在尝试向下滚动,直到它正在滚动但不可单击的元素

android scroll appium
1个回答
0
投票

字符串组织 = "new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("textName").instance(0))";

driver.findElement(AppiumBy.androidUIAutomator(组织));

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

使用这个

© www.soinside.com 2019 - 2024. All rights reserved.