select radio button based on UI text - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: select radio button based on UI text (/Thread-select-radio-button-based-on-UI-text) |
select radio button based on UI text - Sri - 01-23-2008 Hi Ankur, If you look at the attachment you will notice that the "ANNUITANT Driven - Affirm Standard Usage Product" is located at the 2 row in the first screen shot and at the 4 row in the second screen shot there by changing the property value. In order to select the radio button corresponding to my UI text,my understanding is that I have to get the row and column number based on the UI text (i.e ANNUITANT Driven - Affirm Standard Usage Product) in my case and then select the radio button coresponding to that row. If this is the right way then please let me know how to write the code for this ? Following is the line that was added to the expert view for the first screen shot: Code: Browser("Login").Page("Environment : BATEST_3").WebRadioGroup("WebRadioGroup").Select "ADMServerPanel1$ctl03$ctl05$ctl05$SearchResultsGrid$ctl02$RadioProdSelect" Following is the line added to the expert view for the second screen shot and for the same object that I want to select : Code: Browser("Login").Page("Environment : BATEST_3").WebRadioGroup("WebRadioGroup").Select "ADMServerPanel1$ctl03$ctl05$ctl05$SearchResultsGrid$ctl04$RadioProdSelect" Thank you, Sri RE: select radio button based on UI text - umar.shariff - 03-01-2008 use child objects method. |