![]() |
unable to get the webbuttons count(child objects) - 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: unable to get the webbuttons count(child objects) (/Thread-unable-to-get-the-webbuttons-count-child-objects) |
unable to get the webbuttons count(child objects) - qtpexpert - 07-04-2012 Hi guys, In my application in side the frame few buttons are available like add, delete, filter... I could recognize the frame by using index number. now i want to count the no.of buttons in the frame(it is grid) Here I can able to click the single button individually with name property. I f i follow this i have to write function for each button individually. I do not want this. If i have buttons count based on that count i will click on particular button. I tried with the following code but i'm getting the type mismatch error. Code: Set WebBrowserDesc=Description.Create please find the attachement for error. any one knows the solution. pls providethe solution ASAP. Thanks in Advance! RE: unable to get the webbuttons count(child objects) - Ankesh - 07-04-2012 Try the below Code: Set objBrowser=Description.Create Regards, Ankesh RE: unable to get the webbuttons count(child objects) - qtpexpert - 07-05-2012 It is working fine now without doing any changes. Thanks for your solution. without doing any changes in my script it is working fine. |