I would like to press on a button using a uniq ID. I need help with eriting a VB script code function that get this id and then click on the button with that ID.
Public Function ClickButton(id)
What to do?
First of all you will have to spy on the button to get the id (you can do it with GetROProperty but gets complicated if more than one button is present, how does QTP know which button your interested in?) assuming the button id is the value of the button (may be the name, depends) something like this (using a WebButton as the example)