我有一个针对Android的命令,但我不知道如何在iOS上实现它。
driver.findElementByAndroidUIAutomator("new UiScrollable("new
UiSelector())".scrollIntoView(text(\"Radio Group\"));");发布于 2020-01-09 15:45:57
使用javascript executer。
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<>();
scrollObject.put("direction", "down");
js.executeScript("mobile: scroll", scrollObject);如果要向上滑动,请将方向更改为向上
https://stackoverflow.com/questions/59656357
复制相似问题