Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : QuickTest Pro @ OneStopTesting |
Topic: QTP Tutorial 4 Moving mouse to a particular object |
|
Author | Message |
expertqtp
Newbie Joined: 22Oct2009 Online Status: Offline Posts: 1 |
Topic: QTP Tutorial 4 Moving mouse to a particular object Posted: 22Oct2009 at 4:08am |
Sometimes its required to place your mouse cursor on an object in your application and then perform some operation like clicking that object or even right clicking. I have created a short QTP tutorial for moving your mouse cursor on any object in your application.
I used Google webpage to create this small tutorial on HP Quicktest Professional. This script will hover over the mouse cursor inside the search box.(It will not click inside the search box, it will simply bring the mouse over the search box) The QTP Script goes here: x=Browser("micclass:=Browser").Page("micclass:=Page").WebEdit("name:=q").GetROProperty("abs_x") y=Browser("micclass:=Browser").Page("micclass:=Page").WebEdit("name:=q").GetROProperty("abs_y") Set obj=CreateObject("Mercury.DeviceReplay") obj.MouseMove x,y For an explanation of the above code, you can read the complete article at QTP Tutorials Edited by expertqtp - 22Oct2009 at 6:08am |
|
http://quicktesthp.blogspot.com
http://qtpgoodtutorials.blogspot.com Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
yogindernath
Groupie Joined: 27Oct2008 Location: India Online Status: Offline Posts: 52 |
Posted: 22Oct2009 at 4:39am |
Good article Buddy.
|
|
http://www.softwaretestinggenius.com
A Storehouse of Complete Knowledge on Software Testing & QA under one Roof |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.