Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Right Click On a Image and Click on a Link in WebElement
#1
Not Solved
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.
Reply
#2
Not Solved
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Reply
#3
Not Solved
ya sure . i will do the same.
Reply
#4
Not Solved
will you please share the properties of the image?
Reply
#5
Not Solved
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-N...tual-issue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
MyBB how can i automatically click ok button in msgbox popup test 11 24,906 07-12-2022, 11:50 PM
Last Post: akash warke
  no action on click for particular wpf button jlavrecka 1 1,428 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,160 02-28-2019, 11:46 AM
Last Post: naruoga
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,516 09-16-2018, 03:48 PM
Last Post: vijilesh
  Unable to click on dynamically changing webelement preeti 0 1,817 04-29-2017, 08:50 PM
Last Post: preeti

Forum Jump:


Users browsing this thread: 3 Guest(s)