appium / appium/java-client

iOS vertical scroll action by coordinates or by elements on page is happening twice.

Open
#1,292 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

Description

I am using iOSScrollByDirectionCoordinates to scroll on the app page but everytime it is scrolling twice.

JavascriptExecutor js = (JavascriptExecutor) DriverFactory.getDriver();
HashMap<String, String> swipeObject = new HashMap<String, String>();
swipeObject.put("direction", direction.name().toLowerCase());
swipeObject.put("startX", String.valueOf(startElement.getLocation().getX()));
swipeObject.put("startY", String.valueOf(startElement.getLocation().getY()));
swipeObject.put("endX", String.valueOf(endElement.getLocation().getX()));
swipeObject.put("endY", String.valueOf(endElement.getLocation().getY()));
swipeObject.put("duration", durationMillis);
js.executeScript("mobile: scroll", swipeObject);

Xcode version: 11.2.1

  • Appium server version or git revision if you use some snapshot:1.15.1
  • Mobile platform/version under test: iphone
  • Real device
    *Java-client: 6.1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing iOSScrollByDirectionCoordinates with the shown mobile: scroll parameters on a real iPhone using Appium 1.15.1, Java-client 6.1.0, and Xcode 11.2.1. Trace the scroll action from that entry point and verify that one requested vertical scroll produces exactly one scroll.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.