【发布时间】:2023-02-03 07:16:47
【问题描述】:
这是我将键盘带到真正的 ipad 设备上的代码。由于在 Selenium 4 中已弃用 Touch 操作。任何人都可以帮助解决新的解决方案吗?
public void tapOnElementToBringKeyboard(By locator) {
TeasyElement element = element(locator);
clickActions(locator);
int fromX = element.getLocation().getX();
int fromY = element.getLocation().getY();
TouchAction touchAction = new TouchAction((IOSDriver<?>) getDriver());
touchAction.tap(PointOption.point(fromX, fromY)).release().perform().tap(PointOption.point(fromX, fromY)) .release().perform();
}
Dont have any solution
【问题讨论】:
-
已经在stackoverflow.com/a/74854594/20443541 中回答了 Python
标签: mobile automation appium appium-ios selenium4