Micro Focus QTP (UFT) Forums
Right Click On a Image and Click on a Link in WebElement - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Right Click On a Image and Click on a Link in WebElement (/Thread-Right-Click-On-a-Image-and-Click-on-a-Link-in-WebElement)



Right Click On a Image and Click on a Link in WebElement - RameshKrishnan - 07-10-2013

Hi ,

I have one issue script , now say i have 4 images in this Webtable, on right click of Image 1 i get a list of link objects (updated By) on click of this i will get the name of updated by.

But for Image 2 && 3 i wont have this updated by link object. Here i want to loop the table only for those images having updated by link object on right click.

I tried following code:

Code:
Set obj=Browser("name:=Scheduling Week Calendar.*").Page("title:=Scheduling Week Calendar*").WebTable("name:=Previous Week").Image("image type:=Plain Image","index:=9")
Setting.WebPackage("ReplayType") = 2
obj.RightClick
Setting.WebPackage("ReplayType") = 1
If Browser("name:=Scheduling Week Calendar.*").Page("title:=Scheduling Week Calendar*").WebElement("html tag:=UL").Exist Then
msgbox 1 ' Browser("name:=Scheduling WeekCalendar.*").Page("title:=Scheduling Week Calendar*").Link("name:=View app metadata").Click
Else
msgbox 2
End IF

Here even if the link View app metadata is not present its showing msgbox 1.Pls help me in this.


RE: Right Click On a Image and Click on a Link in WebElement - Staff - 07-10-2013

Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.


RE: Right Click On a Image and Click on a Link in WebElement - RameshKrishnan - 07-10-2013

ya sure . i will do the same.


RE: Right Click On a Image and Click on a Link in WebElement - Sathiya - 07-10-2013

will you please share the properties of the image?


RE: Right Click On a Image and Click on a Link in WebElement - RameshKrishnan - 07-10-2013

hi sathiya,

Pls have a look at this thread ,if you can give a solution i think i can solve my actual issue.

https://www.learnqtp.com/forums/Thread-Need-Script-for-the-below-scenario-which-will-solve-my-actual-issue