如何用Katalon在屏幕上滑动图像

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

我正在尝试使用katalon选择图像,然后从右向左滑动图像,直到出现新图像。我似乎无法找到任何想法如何做到这一点?

java automation automated-tests qa katalon-studio
1个回答
0
投票

使用这个command

Mobile.swipe(200, 300, -100, 0)

从版本5.1.0.2开始,第三个和第四个参数是相对的x和y位置。因此,如果滑动的起点位于(200,300)并且您想要向左滑动,则对x轴使用负数(-100),对于y轴使用0(不垂直移动)。

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