fbpx

How to swipe up or down in ios?

How to swipe up or down in ios?

Home Forums Ask Expert How to swipe up or down in ios?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32739
    Marco Malziotti
    Participant

      Good morning
      I would like to use a single script to select the phone prefix for both Desktop, Android and iOS device.
      How do I select a prefix in iOs that is above or below the “+39” (default)?
      I tried with scrollTo method (line 14) but I get ‘Incorrect syntax used for method “ScrollTo”‘ error (https://www.zaptest.com/user-zone/product-training/zaptest/methods/method-swipeto)
      Thanks for your help.

      Marco Malziotti

      #32744
      Sasha ZAP
      Moderator

        Hello marco.malziotti ,

        Basically I’ve found 2 mistakes in your test:
        1. In line #3 you use the ScrollTo method to scroll to an object before the test launches the actual AUT (Application Under Test).
        2. In line #14 you are using the ScrollTo method while the actual syntax you’ve typed is more similar to the SwipeTo method:
        If you actually decided to use the SwipeTo method you need also to add the last 2 method’s attributes (Speed of swiping and the delay before swiping).
        Also the URL you’ve added in your post refers to the SwipeTo method and not to the ScrollTo method.

        Hope this helps.

        Thanks,
        ZAPTEST Team

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.

      Virtual Expert

      ZAPTEST

      ZAPTEST Logo