移动空手道 fw 中的向下滚动方法 [英] Scroll down method in mobile karate fw

查看:13
本文介绍了移动空手道 fw 中的向下滚动方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Karate框架中有一个Web UI测试的向下滚动方法,但是在移动框架中不起作用.您能告诉我们我们如何使用移动空手道框架中的向下滚动功能吗?

There is a scroll down method for Web UI test in the Karate framework, but it does not work in the mobile framework. Can you let us know how we use the scroll down function in the mobile karate framework?

提前致谢

推荐答案

您可以尝试替代选项,例如 移动命令driver.script()

you can try an alternative option like mobile command with driver.script()

例如:

driver.script("mobile: scroll", { "direction" : "down"})

iOS 参考:https://github.com/appium/appium-xcuitest-driver#mobile-scroll

安卓参考:https://github.com/appium/appium-uiautomator2-driver#mobile-scroll

如果你需要 elementId 试试:

def locatorElementId = driver.elementId('<locator>')

这篇关于移动空手道 fw 中的向下滚动方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆