Search code examples
mobileframeworkskarate

Scroll down method in mobile karate fw


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?

Thanks in advance


Solution

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

    eg:

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

    for iOS refer to: https://github.com/appium/appium-xcuitest-driver#mobile-scroll

    for android refer to: https://github.com/appium/appium-uiautomator2-driver#mobile-scroll

    incase you need elementId try:

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