Micro Focus QTP (UFT) Forums
Want to know the position of webedit button on page - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Want to know the position of webedit button on page (/Thread-Want-to-know-the-position-of-webedit-button-on-page)



Want to know the position of webedit button on page - Rajashekar Gouda - 08-08-2008

Hi All,

I want to know the position of a edit button on my appl. Say there are 10 edit buttons one below one.I have entered some text in 5th edit button. Now i want to know the position of the that edit button.In this time time i know the position of that edit button as 5. But while running the script that edit button may go up or down at that time i want to know the position of that button.In case of drop down we can use "selected items count" in GetROproperty and it will retrieve the position of selected option but what is that in case of edit button.

Can any one pls help me

Regards
Raj


RE: Want to know the position of webedit button on page - surya_7mar - 08-08-2008

if i am wrong it is a table to 2 or more columens. Try to get table row and use it to get the webedit row


RE: Want to know the position of webedit button on page - Rajashekar Gouda - 08-08-2008

Thanks for the reply.

Yes there is a row in WebTable and it shows the values as 26.That is fine but. But i want to know the position of th webedit. There is one scenorio which has one drop down when i select some option it displys 15 edit boxes with remove link for each edit button.I want remove 5 th edit button this time. But since the No.of edit button depends on the selection of droo down the postion keep changing. Just i wanted to find the position of the edit the i can click on the corresponding remove button.

Regards
Raj