@FindAll annotation not compatible with @iOSXCUITFindBy
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Description
I'm trying to use @FindAll with @iOSXCUITFindBy to find multiple IOS elements but it does not work.
this code works:
@FindAll({
@FindBy(xpath = "//XCUIElementTypeSearchField"),
@FindBy(xpath = "//XCUIElementTypeSearchField")
})
private WebElement searchField;
but IOS elements have accessibility attribute which is not present in the @FindBy annotation.
Environment
- Java client build version or git revision if you use some snapshot: latest
- Appium server version or git revision if you use some snapshot: latest
Details
Incompatible types. Found: 'io.appium.java_client.pagefactory.iOSXCUITFindBy', required: 'org.openqa.selenium.support.FindBy'
Code To Reproduce Issue [ Good To Have ]
@FindAll({
@iOSXCUITFindBy(accessibility = "a"),
@iOSXCUITFindBy(accessibility = "b")
})
private WebElement searchField;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides a reproducible Java declaration using @FindAll and @iOSXCUITFindBy, but names no source files or tests. Start by tracing how these annotations are declared and processed, then verify that the example compiles and can locate multiple iOS elements using accessibility selectors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, java
- Domain
- mobile-dev, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100