Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Do a Right Click on a Image in Web Table
#3
Not Solved
hi ravi ,

I tried this 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

Its working now.

I have one more issue in this script , now say i have 4 images in this Webtable, on rightclick 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*").Link("name:=View app metadata").Exist Then
msgbox 1
Else
msgbox 2
End IF

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

Thanks
Reply


Messages In This Thread
RE: How To Do a Right Click on a Image in Web Table - by RameshKrishnan - 07-09-2013, 06:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 24,718 04-29-2017, 04:53 PM
Last Post: kowshik
  [UFT] [WPF] Table: how simulate Click or DBClick event robertosalemi 0 3,034 05-17-2016, 08:22 PM
Last Post: robertosalemi
  [UFT] Wpf Label: click on image into cell robertosalemi 1 2,493 05-03-2016, 05:46 PM
Last Post: robertosalemi
  Updating the web table Ananth1982 0 1,888 03-04-2015, 02:31 AM
Last Post: Ananth1982
  Retrieving data from web table nsuresh316 1 3,111 03-03-2014, 08:29 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)