Skip to content

How to find a loactor with Mobilewright? #115

@itkhanz

Description

@itkhanz

Hi,
I have been looking into Mobilewright documentation and trying to find a guide on how to identify locators to be used for finding elements. I did not find any documentation that explains the locator discovery mechanism. Writing Tests docs only state how to use locator methods, but not how do you find these locatrs in first place?
https://mobilewright.dev/docs/getting-started/writing-tests#finding-elements

Does Mobilewright also support use of XPath or iOS native strategies like predicate string, and class chain?
https://appium.github.io/appium-xcuitest-driver/latest/reference/locator-strategies/

Appium provides a handy GUI tool, Appium Inspector which is used for finding selectors from the accessibility tree, to see the attributes of element, and execute commands. Does Mobilewright propose a similiar approach of using Appium Inspector or offers an alternative solution for finding selectors and attributes of screen elements?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions