移动空手道 fw 中的向下滚动方法

编程入门 行业动态 更新时间:2024-10-26 21:25:23
本文介绍了移动空手道 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 中的向下滚动方法

本文发布于:2023-11-13 12:18:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584340.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:空手道   方法   fw

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!