03-14-2013, 12:55 PM
(This post was last modified: 03-14-2013, 01:47 PM by QTP trainee.)
Hi, I have to right click on webpage...Can anyone help me out here with some code?
|
How to right click on webpage using QTP?
|
|
03-14-2013, 12:55 PM
(This post was last modified: 03-14-2013, 01:47 PM by QTP trainee.)
Hi, I have to right click on webpage...Can anyone help me out here with some code?
03-15-2013, 07:15 AM
What is the object you are trying to right click on? Is it just on the page?
Something I could remember of... Method 1: Code: Setting.WebPackage("ReplayType") = 2
browser().page().webelement().Click ,,micRightBtn
'Setting.WebPackage("ReplayType") = 1 'Default 1Method 2: Code: Set obj = CreateObject("mercury.devicereplay").
getX = webElem.GetROProperty("abs_x")
getY = webElem.GetROProperty("abs_y")
obj.MouseClick getX, getY,RIGHT_MOUSE_BUTTONAnd then there is the crude way...But you have to find your way through it..the below is the clue to the puzzle ![]() Code: Extern.Declare micVoid, "mouse_event", "user32.dll", "mouse_event", micLong, micLong, micLong, micLong, micLong
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life. |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| webpage WinObject has same name | Ananthakumar_S | 0 | 2,059 |
11-30-2016, 09:48 PM Last Post: Ananthakumar_S |
|
| Check specific links of a webpage | rocky9 | 1 | 3,257 |
06-11-2015, 06:23 PM Last Post: venkatesh9032 |
|
|
|
How to verify whether pdf is completely loaded or not in webpage | nmakkena | 1 | 3,190 |
08-27-2014, 04:09 PM Last Post: vinod123 |
| Handling .NET framework menu in webpage using QTP 10 | vishnu1067 | 0 | 2,669 |
05-15-2014, 05:30 PM Last Post: vishnu1067 |
|
| Comparing webtable data with weblist and webelements in other webpage | arnav | 1 | 6,361 |
04-18-2014, 10:01 PM Last Post: Parke |
|