appium-inspector
appium-inspector copied to clipboard
Search by multiple locators
Current Behavior
We can only search for one locator at a time.
Suggested Solution
Implement search functionality by multiple locators to find elements that match all locators at once.
Additional Information
The main idea is to be able to reproduce the search by multiple locators in the code, for example like this
@HowToUseLocators(androidAutomation = LocatorGroupStrategy.ALL_POSSIBLE)
@AndroidFindBy(id = "id")
@AndroidFindBy(classname = "classname")
private List<WebElement> elements;
Additionally to search by all possible locators, it would also helpful to add the option to search for multiple locators by either strategy provided in PageFactory i.e. ALL_POSSIBLE or CHAIN.