Highlighted
Absent Member.
Absent Member.
407 views

How to work with Images which is clickable

Jump to solution

There are some arrows in the screens which are links but UFT recognises these as Images. I need to click that to navigate to next screen. Unfortunately UFT is not supporting anything I try in going to next screen. Anyone has faced similar issues, any suggestions...

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Re: How to work with Images which is clickable

Jump to solution

Try this

 

CordX= Image("Image").GetRoproperty("x")

CordY= Image("Image").GetRoproperty("y")

Image("Image").Click CordX/2, CordY/2, micLeftBtn

 

 

 

///Kiran///

 

If you find this useful, mark Kudos

View solution in original post

0 Likes
3 Replies
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: How to work with Images which is clickable

Jump to solution

Hi,

 

Please make sure it is image object, you can open the OR and add it manually then highlight it.

Close the AUT and try again highlight, it will let us know if the image is dynamic.

 

If the recognition is good then check Web Event Recording configuration, it will let us know if the onclick method is enable.

UFT > Record menu > Web Event Recording Configuration > Custom.

  • Expand Web Object tree
  • Select Image object

If the configuration is good then use Mouse instead of Event in replay type like following example.

Setting.WebPackage("ReplayType")=2
Browser("Browser").Page("NMS").Image("Web Workspace").Click
Setting.WebPackage("ReplayType")=1

 

Or you can use DeviceReplay like following example.

ImaX =Browser("Browser").Page("NMS").Image("Web Workspace").GetROProperty("abs_x") 
ImaY =Browser("Browser").Page("NMS").Image("Web Workspace").GetROProperty("abs_y")

Set dr=createobject("Mercury.DeviceReplay") 
dr.MouseClick ImaX+5,ImaY+5,0

 

Note: is recommended add some time before click like "wait 3"

 

Please try and let us know the results,

 

Thanks

 

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to work with Images which is clickable

Jump to solution

Try this

 

CordX= Image("Image").GetRoproperty("x")

CordY= Image("Image").GetRoproperty("y")

Image("Image").Click CordX/2, CordY/2, micLeftBtn

 

 

 

///Kiran///

 

If you find this useful, mark Kudos

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to work with Images which is clickable

Jump to solution

I implemented both the solution combinedly and it worked like a charm. Thanks a lot.

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.