Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Qualitia Automation Studio (QAS) allows you to add and delete multiple locators for an object. You can add up to 5 locators. Multi-locator supports all the applications. If the Smart Locator won’t work for an application, you can switch to multi-locator and perform a successful execution.

Multi-locator only works for Web objectweb objects, not for Mobile or SFDC.

...

Adding multiple locators for an object allows you to run a successful execution without interruption. During the execution, if the first locator fails to identify the element, it will automatically move to the next one and so on until it reaches the last one.

If all the locators fail, QAS will switch to Smart Locator.

Adding Multiple Locators

  1. Login Log in to QAS - Client.

  2. Access Develop from left navigation to view Test Explorer screen.

  3. Click Objects icon from extreme right of the toolkit.

    1. You can view Object Repository, where all Objects of a Project are listed in alphabetical order.

  4. Under a Project, you can view all the Pages pagesfrom which the Objects objects are captured.

  5. Click Expand button before each web page to view its Objects.

  6. If you are landing land on this page for the first time, you will see a bank Object Repository with a Create Object button.

  7. Click Create Object button.

  8. This will open a form where you can:

    1. Enter the object Name.

    2. To use the Smart Locator feature during execution, ensure to check the Smart Object checkbox.

      1. If you are selecting the Smart Object, you will be prompted to confirm, click Ok OK.

    3. Choose Technology from the dropdown.

  9. To add multiple locators, click + icon next to Locator.

    image-20240116-105810-20240214-074537.png
  10. You can add up to 5 locators for an object.

  11. Select the Locator Type and Value using the dropdownfor each locator.

  12. Once added, the Execution will take place in the sequence the locators are added.

Info
  • You can add similar locators for more than one time.

  • You should be able to expand and collapse entire locator section by clicking on Locator dropdown.

...

  1. Click the Bin icon in line with the locator Type to delete the locator.

  2. Clicking the bin icon will open a pop-up message Deleting locator Deleted locators will not be recovered.

  3. Click Yes to continue; otherwise, click No.

  4. Hovering over the locator type will highlight it in gray color.

...