本文介绍了移动空手道 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 参考:github/appium/appium-xcuitest-driver#mobile-scroll
安卓参考:github/appium/appium-uiautomator2-driver#mobile-scroll
如果你需要 elementId 试试:
def locatorElementId = driver.elementId('<locator>')更多推荐
移动空手道 fw 中的向下滚动方法
发布评论