Create a Mobile Locator

In order to define a new Mobile Locator, follow the steps below:

  1. Click + Add while on Mobile Locators tab. You can select Folder to create a folder to organize your mobile locators. To create a new locator, select Locator.

    image-20240619-161342.png

     

  2. This will open up the New Mobile Locator tab

    image-20240619-161422.png

     

  3. Advanced View of New Locator will switch to editor mode where you can copy the content of the locator and then Grid View takes you back to the above view of new Locator definition

On the window in Step 2, specify the Page which is an editable drop-down (best practice is to use application name followed by “_” and followed by page name, for example myApp_login, myApp_search, etc.) and Alias for the locator you are defining along with only one unique identifier. This identifier can be the ID, Name or Partial Text. You can also choose XPath instead of Identifier.

  1. By default, Common option is enabled where the Identifier or XPath is the same across platforms, but you can switch to “Platform-specific” to enter values unique to iOS and Android.

     

  2. Click the Save & Close button to save your locator. Once saved, your newly defined locator will show up in the locator listing on the Mobile Locators screen.

Related pages