How to select the first checkbox - 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: How to select the first checkbox (/Thread-How-to-select-the-first-checkbox) |
How to select the first checkbox - ramya511 - 05-22-2013 I need to perform a search criteria and it will bring list of deals, I need to select first checkbox and perform an action This is the code I wrote Code: Set Obj=Description.Create() It gave correct number of checkbox, now I need to select the first checkbox, can you please tell me how to select the first checkbox? I tried this code but it did not work Code: For i = 1 to 2 RE: How to select the first checkbox - basanth27 - 05-22-2013 Is your criteria only to select the first one? If yes then you dont have to iterate. You could simply add the object to the repository and then SET it to ON. But if you want to highlight a 5th or 7th or loop through then you can use the below code. The below code will check all the checkboxes it has identified. Code: Set Obj=Description.Create() Does it help? RE: How to select the first checkbox - venugqtp - 05-22-2013 Code: Set Obj=Description.Create() RE: How to select the first checkbox - learnQtptips - 05-22-2013 If you need to check only the first checkbox, then you dont have to use the for..next loop as below Code: Set Obj=Description.Create() Code: Set Obj=Description.Create() |