Object Spy for Internet Explorer
Object Spy supports CRUD operations to manage objects.
Prerequisites
- Ensure you have Full control rights to the folder and subfolders where Object Spy is getting installed.
- Ensure that the Active scripting option is set to Enable under Security Settings section. To do so, under Internet Options > Security > Custom Level.
By default, this option is set to Disable in the high security zone.
- Ensure that Enable third-party browser extensions* is enabled from the Advanced section of Internet Options.
Object and their Attributes
Objects
Internet Explorer Object Spy does not support adding objects for a SFDC application.
Object Attributes
- Name
- ID
- Class
- Name: Sign in
- Color: Blue
Selection of Attributes
Static and Dynamic Objects
Static Objects
Dynamic Objects
Locator Priority Settings
Locator Types
- Link
- Name
- ID
- XPath
- CSS
- On Object Spy toolbar, click the Settings icon.
The Locator Priority Settings window appears.- Click Up/Down buttons to changes the priorities of the locator type.
- Click Restore Default to restore the default priorities.
- Click Cancel to discard changes.
- Click Ok to apply the changes.
Object Learning Algorithm
When Object Spy overrides the preferred locator type even if the object has Name or ID Attributes
Objects under Frame
Object Identification Failure
- Object does not exist
- Object exists but tool failed to identify
Selecting Capture Mode and API
Capture Mode
- Left Click: In this mode, you can add objects to the repository using the left click of the mouse.
- Mouse Hover: Using this mode, you can add objects in the repository just by hovering mouse pointers over objects.
- Launch Object Spy.
- Go to Settings > Inspection.
- In Capture mode, select the required option.
- Click OK
Capture APIs
- Browser Mode: In this mode, Qualitia identifies objects using JavaScript events or native events.
- Accessibility: Selecting this mode, you can utilize Microsoft Active Accessibility API to identify objects from application under test more reliably.
- Launch Object Spy.
- Go to Settings > Inspection.
- In Capture API, select the required option.
- Click OK.
Launching Object Spy
If Anti-virus of your computer stops launching Object Spy, you need to whitelist the object spy's extension in the Anti-virus.
Open the Qualitia Automation Studio client.
From the Expand Menu, click Develop.
- Click the Objects tab.
Click the Spy button. as shown in the following figure:
- You are prompted with the following confirmation message:
- Click Yes if you have administrative privileges. You will not be able to continue with the installation if you do not have administrative privileges.
The following Windows confirmation message appears:
- Click Yes.
- Internet Explorer opens, and you will see Object Spy at the bottom as shown in the following figure:
- Right-click the Test case or Task screen, and select from the context-menu Object Spy.
Object Spy User Interface
- Object Spy tab
- Tree view
- Grid view
- HTML tab
- Button to change Object Inspection Mode
- Object Name
- Object Description
- Object Class
- Locator Type
- Locator Value
- SmartLocator
- Highlight
- Clear Highlight
- Save
- Delete
- Reset
- Search
- Settings
Adding Objects Using Different Modes
- From the Objects screen, click Spy.
The Object Spy window appears. - Navigate to the page from where you want to add objects.
- Ensure that Select Object option is disabled.
- Point to an object that needs to be added.
The object is highlighted with a blue border. - Right-click the object and select Add Object from the context-menu.
A confirmation message appears after the object is added.
An object is added to the repository using the precedence set in Locator Priority Settings.
- While pointing to an object ensure you have pointed to an object with its appropriate Object Class.
- Objects that are added manually with CSS/DOM Locator Type values cannot be highlighted.
- When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Left-Click Mode
- From the Objects screen, click Spy.
The Object Spy window appears. - From the Settings > Inspection.
- Select Capture Mode as Left-Click and click OK.
- Navigate to the page from where you want to add objects.
- Ensure that Select Object option is enabled.
- Left-click the object which you want to add into the repository.
A confirmation message appears after the object is added.
When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Mouse Hover
- From the Objects screen, click Spy.
The Object Spy window appears. - From the Settings > Inspection.
- Select Capture Mode as Mouse Hover and click OK.
- Navigate to the page from where you want to add objects.
- Ensure that the Select Object option is enabled.
- Hover the mouse pointer over the object which you want to add into the repository.
A confirmation message appears after the object is added.
When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Selecting Object Attribute On-The-Fly
- From the Objects screen, click Spy.
The Object Spy window appears. - Navigate to the page from where you want to add objects.
- Right-click the object and select Add Object By from the context-menu.
Select the object attribute using which you want to add object into the repository.
A confirmation message appears after the object is added.When adding new object in the repository, if object already exists, Qualitia notifies displaying the object name that is used while adding this object into the repository.
Adding Objects from HTML Code View
Adding Objects from Modal Dialogs
- Launch Object Spy.
- Go to Settings > Inspection.
- Select the Allow Modal Inspection option.
- Click OK.
Now you can add objects from modal dialogs and use them while creating new tasks and test cases.
Searching Object
- Search by Object Name
- Advanced Search
Search by Object Name
- On the Object Spy window, enter the object name you want to search.
- Click Search.
When you select objects from the search results, immediate parent will be highlighted for easy identification.
Advanced Search
- On the Object Spy toolbar, click the Search icon.
The Object Search window appears. - Select the appropriate filter (Name, Object Class, Locator Type, or Locator Value) to search an object.
- Click Search.
Editing Object Details
- Press F2 key or double-click the cell.
- Use arrow keys to traverse from one field to another.
- Use the Enter key to save the data.
Objects not used in Test cases or Tasks can be edited. If objects that are used in Test cases or Tasks are edited, then Qualitia notifies for confirmation before allowing any edits.
Resetting Objects
- On the Object Spy toolbar, click Reset.
This will discard any unsaved changes.
Deleting Objects
- On the Object Spy grid-view, select the check box(s) corresponding to the objects that you want to remove.
Select the check box at the top of the column to select all the objects. - On the Object Spy toolbar, click Delete.
- An object can only be deleted from the Object Spy, if it is not in use in the test case development.
- Delete operation is permanent and cannot be reverted.
- If you try to delete a page or frame object, you will be prompted to delete all child objects first and then delete the page object.
Highlighting Objects
Highlight
- Navigate to a page from which objects are added earlier.
- Select an object from the Object Spy toolbar.
- To select all objects, select the check box at the top of the column.
- Click Highlight.
The selected objects get highlighted on the current page with the object name that is used to store in Qualitia. - On the Object Spy toolbar, click Clear Highlight to clear the highlighted object from the current page.
Google Chrome Object Spy
Adding Extension to the Google Chrome Browser
- Download the ChromeExtension folder from the S3 location to your computer and open it.
- Extract the QualitiaChromeExtension-8.3.0 zip file in a local folder on your computer.
- Launch Google Chrome browser and navigate to chrome://extensions/
- Enable Developer mode.
- Click Load unpacked.
- Select the folder where you extracted the QualitiaChromeExtension-8.3.0 zip file and click OK.
- To launch the Qualitia Object Spy, Press F12 to open Developer options and select Qualitia Object Spy.
- To start using Qualitia Object Spy, navigate to the Developer options (F12) and select Qualitia Object Spy.
- Enter the Qualitia Server URL, Qualitia User Id, and then click
Launching Object Spy from the Browser
You can launch the object spy from the browser type on which you have added the object spy as an extension.
To launch the Object Spy from the Browser:
Do one of the following:
To launch the Chrome Object Spy, open the Chrome browser.
To launch the Edge object spy, open the Edge browser.
Press F12 to open Developer options and select Qualitia Object Spy.The Qualitia Object Spy login page opens.
Enter the Qualitia Server URL.
Enter the same user id that you use to login to Qualitia Automation Studio (QAS) client ,in User Id.
Click Continue.
Select the associated project on which you want to add and manage objects.
Adding New Objects using Google Chrome Extension
- Launch Google Chrome browser and navigate to the application URL.
- Open Developer tools (press F12 or right-click and select Inspect from the context-menu).
- In Developer tools, select Object Spy.
- Enter Server URL and Qualitia User ID.
The Server URL is a combination of the hostname and port 8887 where you have installed Qualitia server.
For example, http://192.112.33.123:8887 or http://localhost:8887 (if server is installed on a local machine).
By default, Qualitia uses port 8887. You may change it while installing /wiki/spaces/QASWM7/pages/1169433190 component. - Click Continue.
The list of projects appears which are accessible to that user. - Select the project under which you want to add new objects and click Continue.
- To add new objects in the repository, turn the Select Mode on.
- Hover the mouse pointer over the object and click it once the object details are highlighted.
You will see the object added into the list in the Object Spy window. Once you add all the required objects, click Save to Repository.
This will add objects into the repository and the object is now ready for use in the automation studio.- To add the objects for a child window, do one of the following:
- Open the child window, and open its associated Object Spy to add the child window objects to a new child window object repository.
- Open the child window, and 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.
It is recommended to use Qualitia Object Spy on Google Chrome 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 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 Chrome Object Spy adds the objects of all the pages in the same object repository.
Locator Priority Settings for Chrome Object Spy
Link
Name
ID
XPath
CSS
SFDC:Label
Link
Name
ID
XPath
CSS
Note: When adding objects for a SFDC application, ensure that you have selected a Salesforce project.
Updating Object Details
On the Google Chrome browser, launch Qualitia Object Spy and connect to the desired Qualitia server and project.
- In the Repository section, select the page under which the object exists which needs to be updated.
Click the edit () icon next to the object which you want to edit.
Any type of manual intervention like HTML tag/structure change, objects parameterization, and so forth will not work for the SmartLocator mode.
- Modify object details and then click .
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:
- Learn this object afresh using Qualitia Object Spy.
- Specify a valid xpath for the object. The object will be SmartLocator enabled only after the first execution.
Highlighting the Objects
Qualitia Web Object Spy lets you highlight the added objects when you navigate to the associated application under test page. This helps you to understand which objects are added into the repository and which objects are not added yet.
To highlight the objects:
- 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 Adding Web Application Objects. - In the Repository section, select the page from which you want to highlight the object.
- Do one of the following:
To highlight all objects on the page, click the highlight () icon at the page level.
To highlight a specific object, click the object name you want.
The application page highlights the objects.Objects existing in the repository are highlighted with the green border (as shown in the screenshot above). Objects that do not exist in the repository yet are highlighted with the red border.
Remove Objects from Repository
On the Google Chrome browser, launch Qualitia Object Spy and connect to the desired Qualitia server and project.
- In the Repository section, select the page from which you want to remove the object.
- Click the remove () icon next to the object which you want to remove.
You can delete a parent page only when all of its child objects are removed.
Filter Object List
On the Google Chrome browser, launch Qualitia Object Spy and connect to the desired Qualitia server and project.
- In the Repository section, use the filter () option to filter objects.
- To filter objects by Web Page, select the desired page from the drop-down list.
- To filter objects by Object Class, select the desired object class from the drop-down list.
Object Spy Limitations/Known Issues
Limitations of SmartLocator Feature:
- For the test cases getting executed through Qualitia Bot (erstwhile Offline package), the corrected locator value by SmartLocator will not be updated in the object repository.
- SmartLocator feature does not support any wait-related Qualitia actions like WaitForExistence, WaitForVisibility, WaitForClickability, WaitForAttributeContains, and so forth.
Limitations for Qualitia Object Spy for Google Chrome
- Identifying SVG elements is not supported while adding objects from Object Spy for Google Chrome.
- If the network connection failure occurs on Qualitia Server, Qualitia Web Service needs to get restarted.
- The object inside frames cannot be highlighted while working with Qualitia Object Spy for Google Chrome.