Versions Compared

Key

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

Watch the video tutorial about working with object spy here:

...

You can add an object of a web application under test with a single-click and select the locator type of your preference.  Qualitia also allows you to add objects as an image object.

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

...

For image objects, locator type should be is Image only.

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

Info

Ensure that you have installed Object Spy on the browser of your choice and your computer is connected to Qualitia Server.

Ensure that you have selected a Salesforce project when adding objects of a Salesforce application. 

For adding objects of a Salesforce application, Qualitia recommends using Chrome Object Spy only as Salesforce does not support viewing their applications on Edge.    

To add Web Application Objectsweb application objects (excluding image 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 Click the Hover or Image mode.

    Image Removed

    For Hover mode, hover mode, as shown in the following screenshot:

    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.For Image mode, select the image by drag and drop method and set the position of pointer by clicking on the image. The object is added into the list in the Object Spy window.

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

    Image RemovedImage 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.  

      Note: 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 Hover/Image 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.

  •  

Edit an Object using Object Spy

You can update the object details and also change their locator type and associated locator value.

To edit an objectTo add the image 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. Click the Image mode, as shown in the following screenshot:

    Image Added

  4. Select the image you want to add by drag and drop method and set the position of pointer by clicking on the image:

    Image Added


    The image object is added into the list in the Object Spy window:

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

    Image Added


    The objects will be saved to the repository, as shown in the following screenshot:

    Image Added

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, click the Hover/Image 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.

Edit an Object using Object Spy

You can update the object details and also change their locator type and associated locator value.

To edit an object learnt by the Hover mode:

  1. Launch the browser (Edge or Chrome) that is enabled with Web Object Spy.
    For detailed instructions on how to launch a web object spy, refer to Launching Object Spy from the Browser.

  2. In the Repository section, select the page under which the object exists which needs to be updated.

  3. Click the edit (Image Added) icon next to the object that you want to edit. For detailed instructions on how to edit an object learnt by the Hover mode, refer to Editing an Object Learnt by Hover Mode
    Note: SmartLocator mode does not support the HTML tag/structure change.

  4. Modify the object details and then click Save.

To edit an object learnt by the Image mode:

  1. Launch the browser (Edge or Chrome) that is enabled with Web Object Spy.
    For detailed instructions on how to launch a web object spy, refer to Launching Object Spy from the Browser.

  2. In the Repository section, select the page under which the object exists which needs to be updated.

  3. To edit the object learnt by the Hover mode:

    Click the edit (Image Modified) icon next to the object that you want to edit.


    Note: SmartLocator mode does not support the HTML tag/structure change.
  4. Modify the object details and then click Save

  5. To edit the For detailed instructions on how to edit an object learnt by the Image mode:

    Click the edit (Image Removed) icon next to the object that you want to edit.

    , refer to Editing an Object Learnt by Image Mode
    Note: SmartLocator mode does not support the Image mode.


    Image Removed

  6. Modify the object details and then click Save. You cannot modify the locator type of the image object.

Info

Important Notice:

Qualitia SmartLocator automatically identifies dynamic objects during the test case execution. Enabling this option, you cannot edit object details like locator value and locator type.

If you disable this option, this object will no longer be eligible for SmartLocator identification. Please note that if you wish to enable this option for this object later, you will have to perform either of the following steps for SmartLocator to work for this object:

  1. Learn this object afresh using Qualitia Object Spy.

  2. Specify a valid XPath for the object. The object will be SmartLocator enabled only after the first execution.

...

...

...

  1. Download Android Studio.

  2. Once downloaded, double-click android-studio-bundle-windows.exe.
    This will start installation of Android Studio.

  3. Follow the on-screen instructions and complete the studio installation.

  4. Select Standard Installation.

...

System displays the list of components selected to be installed.

  1. Go to SDK Tools and ensure that Android SDK Build-Tools is installed. If not, then download it.

  2. Click OK

  3. Once all the required components are installed, click Finish.
    Now you can start creating virtual devices.

...

  1. Launch any browser.

  2. Enter Mobile Object Spy URL

  3. Enter Qualitia Server URL.
    Qualitia Server URL is a combination of Hostname/IP of the server where you have installed Qualitia server along with the port 8887.
    Sample URL may look like: http://192.168.25.33:8887 or http://localhost:8887 (if mobile object Spy server is installed locally).

  4. Enter Qualitia Username and Password.

  5. Click Sign in

  6. Select Qualitia project under which you want to add newly inspected objects and then click Sign in.

...

  1. Launch Mobile Object Spy on any browser using Mobile Object Spy URL.
    Mobile Object Spy URL is a combination of hostname/IP of the machine where Mobile Object Spy server is installed along with the port 4001.
    Sample URL may look like: http://192.168.25.77:4001 or http://localhost:4001.

  2. Enter Qualitia Server URLUser id and Password.
    Qualitia Server URL is a combination of Hostname/IP of the server where you have installed Qualitia server along with the port 8887.
    Sample URL may look like: http://192.168.25.77:8887 or http://localhost:8887.

  3. Select the Qualitia project under which you want to add new objects.
    Here you will see all the real devices connected to the agent Mobile Object Spy agents along with the emulators or simulators.
    For more information on creating emulators/simulators using Android Studio or XCode, click here. 

  4. Click Boot and Connect to boot the device and launch it to spy the objects.
    This option is available for emulators/simulators only.

  5. Click Connect to launch the real device connected to Mobile Object Spy agent or already started emulator/simulator.
    For the device to be visible and usable the device needs to allow unauthorized access on the connected device for Mobile Object Spy to work

...

Ensure you have set the default browser as Google Chrome in the real device.

One mobile device can be accessed by one user only. If the device is being accessed by some other user, you will see the device state as Busy.

...

In Mobile applications, there are two types of objects:

  • Web: The objects which are solely created for web applications. They are present in web context of the hybrid applications and web applications.

  • Mobile: The objects which are solely created for mobile applications. They are present in native and native context of the hybrid applications.

...

Capabilities

Description

Values/Example

noReset

Helps you reset the application before starting the session.

Boolean (true/false)

intentAction

Intent action to use to start an activity. Applications can have their own intentAction. You will get this information by the app developer.

android.intent.action.VIEW

intentCategory

Intent category to use to start an activity. You will get this information by the app developer.

android.intent.category.LAUNCHER

chromeOptions

This capability allows you to customize and configure a ChromeDriver session. For the complete list of ChromeDriver supported capabilities and how to use them, see the chromeOptions documentation.

args=–-headless

...

  1. Launch any browser.

  2. Enter Mobile Object Spy URL

  3. Enter Qualitia Server URL.
    Qualitia Server URL is a combination of Hostname/IP of the server where you have installed Qualitia server along with the port 8887.
    Sample URL may look like: http://192.168.25.33:8887 or http://localhost:8887 (if mobile object Spy server is installed locally).

  4. Enter Qualitia Username and Password.

  5. Click Sign in

  6. Select Qualitia project under which you want to add newly inspected objects and then click Sign in.

...