Versions Compared

Key

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

...

The following is the default sequence to add objects for a web application:

  • Link

  • Name

  • ID

  • XPath

  • CSS

The following is the default sequence to add objects for an SFDC application:

  • SFDC:Label

  • Link

  • Name

  • ID

  • XPath

  • CSS

You can change the locator type sequence as per your requirements. 

...

To add Web Application Objects:

  1. Launch either Edge or Chrome Object Spy.
    For detailed instructions on how to launch a web object spy, refer to Launching Object Spy from the Browser.

  2. Enter the application under test URL in the address bar.

  3. Enable the Select Mode on.

    Image Removed


    Image Added
  4. Hover the mouse pointer over the object and click it once the object details are highlighted.
    The object is added into the list in the Object Spy window.

  5. After adding all the required objects, click Save to Repository.

    Image Removed


    Image Added


  6. To add the objects for a child window, do one of the following:

    1. Open the child window, and open its associated Object Spy to add the child window objects to a new child window object repository.

    2. Open the child window. Click the Select Mode button of the Object Spy associated with the parent window to add the child window objects to the parent window object repository. You can switch between parent and child windows to add their objects using the Select Mode button.  

      Info

      It is recommended to use Web Object Spy in left dock mode or right dock mode. If you want to use it in any other dock mode, re-enable the Select Mode button to start using it.

      You can also detach Object Spy UI with the application under the test page and also add the child window objects as shown in the above-mentioned step. However, if you are adding objects for multiple application pages in the detach mode, the Web Object Spy adds the objects of all the pages in the same object repository.


...