Skip to content

Provide an option to control the order of locators(elements) to be returned when more than one condition is met while using OR operator in the PageYAML #314

Open
@mvelu

Description

@mvelu

Selion always picks and returns only the last element locator when two locators in OR conditions are matched and available in the Page. Need an option to Pick any matching locators based on the request from the customer.
US: "//android.widget.TextView[1]| //android.widget.TextView[2] | //android.widget.TextView[3]"
In the above case when TextView[2] and TextView[3] are available in the page, Selion always find and return only android.widget.TextView[3].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions