appium / appium/java-client

multiple locators not work for @AndroidFindAll

Open
#1,426 3 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

@AndroidFindAll(value = [AndroidBy(id = "button_tooltip", priority = 1), AndroidBy(id = "text_view_tooltip_ok", priority = 2)])
i defined element as above annotation, but when the ui displayed the second priority element, the driver not able to found it.

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 the annotation with AndroidBy entries for button_tooltip and text_view_tooltip_ok, then inspect how @AndroidFindAll handles locator priority when the second element is displayed. Done means the driver finds the second-priority element in that scenario; the issue does not name a source file or test to run.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.