Absent Member.
Absent Member.
1387 views

Locator Spy for same control gives different values

Jump to solution

Hi,

I am using Silk4NET, for window application having problem with Locator Spy for same control it gives two different caption id for Ex.

1st time getting value =  /FormsWindow[@caption='Search Movements -  Trading Applications']

2nd time getting value = Search Movements -  Trading Application

there is any solution for such kind of problem

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

You can control whether Object Maps are generated and used through the Options dialog.  Select the menu item Silk4Net | Options and go to the Recording tab, the section Record object map entries allows you to control how Object Maps are used during recording.

Note that the setting is turned on by default as this gives the best user experience, for example, if the details for a control change (due to an application change) you only have to modify the Object Map entry and all your scripts will continue to work rather than making that change across multiple scripts.

However, the choice is yours how you use this feature.

//*eggbox

View solution in original post

0 Likes
3 Replies
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

The first one is a raw locator whereas the second one is referring to an entry in the object map.

//*eggbox
0 Likes
Absent Member.
Absent Member.

Thank you for you reply. I am beginner for Silk4NET, in my reading control get value from Object map. Will you please explain where to check Raw locator value and how to use Raw locator.

0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

You can control whether Object Maps are generated and used through the Options dialog.  Select the menu item Silk4Net | Options and go to the Recording tab, the section Record object map entries allows you to control how Object Maps are used during recording.

Note that the setting is turned on by default as this gives the best user experience, for example, if the details for a control change (due to an application change) you only have to modify the Object Map entry and all your scripts will continue to work rather than making that change across multiple scripts.

However, the choice is yours how you use this feature.

//*eggbox

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.