【问题标题】:TouchAction deprecated in Selenium 4TouchAction 在 Selenium 4 中被弃用
【发布时间】: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 

【问题讨论】:

标签: mobile automation appium appium-ios selenium4


【解决方案1】:

我也在同一条船上,不确定如何使用 selenium 4 向上、向下、向左和向右滑动

【讨论】:

    猜你喜欢
    • 2020-03-18
    • 2021-02-19
    • 2020-02-06
    • 2019-04-09
    • 2021-12-15
    • 2016-11-28
    相关资源
    最近更新 更多