soji2 Absent Member.
Absent Member.
150 views

Script to click on a label of a window

Please help me to do followig scenario.

I have a label Eg:"Desktop" in a window.
Label is not identified by the Object SPy of QTP.
I want to click on the label during my play back.[Please avoid the hardcoding the cordinates in the script]

Please sent me the synatx also...
0 Likes
4 Replies
Highlighted
Absent Member.. Babji Absent Member..
Absent Member..

Re: Script to click on a label of a window

Hi,

Label means here, just the area on application displays the "Desktop" text?

if so, that is not the object, that might not have properties to use.

1. Make particular label area as Virtual object and then Click

2. Using absX,absY Coordinates... you can click

3. I think we can even go with DOM concepts, if it is webapplication.

0 Likes
soji2 Absent Member.
Absent Member.

Re: Script to click on a label of a window

Please note that it is not an web application.
It is an desktop application which is created using VB.NET.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Script to click on a label of a window

I'm assuming you have the .Net addin loaded & Selected.

When you "Spy" on the Label no object or object properties are identified by the Object Spy, not even WinObject?

Don't think I have ever seen that and I have experience automating VB.Net applications.

I don't think you have any alternative than x,y coordinates.


Mark Smith.
0 Likes
soji2 Absent Member.
Absent Member.

Re: Script to click on a label of a window

Please sent the sytax for
1.Return the cordinates of a label in the window and then
2.Click on the label.
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.