appium / appium/java-client

how to scroll backward in android using UIAutomator2

Open
#1,276 1 comment 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

Need to scroll backward in Android. Kindly help me to achieve it. Used flingBackward(),scrollToEnd for which i got error like it should

Error code:
Could not parse expression new UiScrollable(new UiSelector().description("row_selected_0")).flingBackward(): Last method called on a UiScrollable object must return a UiObject object

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 with the reported UIAutomator2 expression using UiScrollable, UiSelector, and flingBackward(), then compare it with the supported Android scrolling API usage. Done means identifying a valid backward-scroll invocation that avoids the reported parse error and confirming it against the relevant Android automation behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.