How can I find out the cursor position through QTP
suppose I am keep tabbing(Pressing the tab key continuously)
and stoped at a position
Now I want to find out where the cursor position is



How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key ..

Answer / Nizamoodeen

In QuickTest Professional (QTP), you can use the following methods to get the cursor position:
1. VBScript: You can use the `ActiveBrowser.PageSource` property to get the HTML source of the web page and then search for a specific tag or attribute that indicates the current cursor position.
2. IDE: QTP's built-in keyword 'GetProperty' can be used to get the value of a specific property of an object, such as the `value` or `name` attributes, which might help you determine the cursor position.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1 Answers  


How to do the Mouse Operations in QTP. How to aacess an Image in a web application to save it on my desktop. To my Knwoledge that can be done by mouse right click on the Image and selecting 'Save the Image'option. Or Is there any alternate way to do this..

1 Answers  


How to resume the second iteration in the QTP,, if the error has intrupted the the second iteration. When i use run from step it starting from the first iteration again.

1 Answers  


how to call multiple scripts in QTP at a time

3 Answers   IBM,


Tell me the difference between QTP9.2, QTP9.5 and QTP10.0

1 Answers   Genpact, HSBC,


How to Test the mainframe application?(tell me few basic things)

1 Answers   Covansys, IBM, UST,


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

1 Answers   TCS,


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1 Answers  


Could you suggest me best coaching for automation in Delhi or nearby area?

0 Answers  


recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail

3 Answers   Infosys,


Hi, I Install QTP 9.2 in windows Vista. but it is not supporting IE. it is supporting only windows based application. could I change any setting in Vista for supporting IE.. ?? thanks in advance...

2 Answers  


what is exacltly TIERS ?

0 Answers  


Categories