如何使用java在appium中垂直滚动混合应用程序

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

我正在自动化混合应用程序,我希望在Web视图中的页面中从上到下垂直滚动。我使用的是java client-5.0.4,而appium的版本是v1.7.2

enter image description here

java webview appium
1个回答
0
投票

您可以使用press方法在appium中滑动。例如。 :

TouchAction().press(el0).moveTo(el1).release()

如果您希望使用坐标而不是webelements,它也适用于坐标。

有关触摸操作的更多信息,请访问:https://appium.io/docs/en/writing-running-appium/touch-actions/

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