Locator Types
The Object Spy has the following locator types:
...
- 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
Based on the preferred locator types, Object Spy looks for name property of the desired object. If it is not found it looks for the next preferred locator type which is for example ID. If it is not found, it then derives Xpath by referring to other native properties of the object or even of a parent if required. This is typically required in a case of duplicate objects. For more information on duplicate objects refer to the Challenging Situations in Object Identification and Remedies section.
When Object Spy overrides the preferred locator type even if the object has Name or ID Attributes
Assume you have set preference of locator type as Name, ID, Xpath, and Link. The object which you want to add has name property. Object Spy reads the value of name property and checks whether there is another object that has same value of the name property. If a duplicate is found then Object Spy overrides preference and looks for ID or Xpath.
...
Once the objects are added and saved from Object Spy, you can select objects from the object drop-down without any need to refresh or relaunch Qualitia.
Objects under Frame
This is a typical method that Selenium operates with objects. Selenium searches the object within the scope of the HTML page. Frame element also can hold 'HTML' tag enclosed within. If Selenium is supposed to act on any object under frame, it has to first decide the scope of searching the object in the HTML within the frame and not outside HTML. This is typically done by selecting a frame during development of a test case.
Object Identification Failure
Object identification failure can be categorized by the following cases:
...