appium-inspector icon indicating copy to clipboard operation
appium-inspector copied to clipboard

Search by multiple locators

Open wazzeps opened this issue 1 year ago • 1 comments

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;

wazzeps avatar Jul 23 '24 22:07 wazzeps

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.

itkhanz avatar Aug 21 '24 07:08 itkhanz