Yes, it’s possible to, you need to use HowToUseLocators annotation with LocatorStrategy.ALL_POSSIBLE which means either Login OR SignIn
@HowToUseLocators(iOSXCUITAutomation = LocatorGroupStrategy.ALL_POSSIBLE)
@iOSXCUITFindBy(xpath="//[@name=‘Login’]")
@iOSXCUITFindBy(xpath="//[@name=‘SignIn’])
protected WebElement loginbtn;
The problem in using 2 locator strategy is it will make execution slow. Instead of that you can use NS Predicate, it would be faster as compared to earlier one
@iOSXCUITFindBy(iOSNsPredicate = “name == ‘Login’ OR name == ‘SignIn’”)
protected WebElement loginbtn;
For more info on predicate string https://github.com/facebook/WebDriverAgent/wiki/Predicate-Queries-Construction-Rules