Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search by multiple locators #1568

Open
wazzeps opened this issue Jul 23, 2024 · 1 comment
Open

Search by multiple locators #1568

wazzeps opened this issue Jul 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@wazzeps
Copy link

wazzeps commented Jul 23, 2024

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 wazzeps added the enhancement New feature or request label Jul 23, 2024
@itkhanz
Copy link

itkhanz commented Aug 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants