Aditi0407 Absent Member.
Absent Member.
1289 views

Accessing Locator without using Index Value

Jump to solution

Hi,

I am using Silk Test - Open Agent for a Desktop Application. Please help in accessing a Locator without using Index value.

Thanks in Advance!!

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

RE: Accessing Locator without using Index Value

Jump to solution

Hi Aditi0407,

In general SilkTest will only generate Index-based locators, when there are no better alternatives available to identify the control. The Recorder can only utilize public properties that are defined for the controls; and would suggest you examine the controls with the Locator Spy, and check if there are any static/unique attributes available that can potentially be used. I suspect you will find that there are no better alternatives available, as our Recorder would favor using attributes over an Index, when generating locators for any control.

Best Regards...

John.  

0 Likes
1 Reply
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

RE: Accessing Locator without using Index Value

Jump to solution

Hi Aditi0407,

In general SilkTest will only generate Index-based locators, when there are no better alternatives available to identify the control. The Recorder can only utilize public properties that are defined for the controls; and would suggest you examine the controls with the Locator Spy, and check if there are any static/unique attributes available that can potentially be used. I suspect you will find that there are no better alternatives available, as our Recorder would favor using attributes over an Index, when generating locators for any control.

Best Regards...

John.  

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.