Appium iOSXCUITFindBy annotation doesn't support By.name

As of now iOSXCUITFindBy supports XPath, tagName, className, etc but not By.name. Support for that will be useful for the identification of elements on the page.

name is id for iOS :slight_smile: just try

@Aleksei, it is not working with id. With @iOSFindBy(accessibility = “Wishlist”) it is working but with @iOSXCUITFindBy(accessibility = “Wishlist”) or @iOSXCUITFindBy(id = “Wishlist”) it is not working.

/**
 * Used to build a complex iOS XCUIT mode locator.
 */
public @interface iOSXCUITBy {

-> = it should work ONLY inside e.g. “iOSXCUITFindBys” or “iOSXCUITFindAll”
code example:

    @iOSXCUITFindBys(value = {
            @iOSXCUITBy(id = "your_ID"),
            @iOSXCUITBy(className = "XCUIElementTypeTextField")
    })