How to get all links in a 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: How to get all links in a page (/Thread-How-to-get-all-links-in-a-page) |
How to get all links in a page - iamsekhar - 08-26-2010 Scenario: In my application there are many links, by clicking each and every link the 1. Click the hyperlinks 2. Then "File Download" dialouge appears we have to save file name in any drive (C or D) 2. After saving file then get row count in xls file. Note: I have done above scenario by recording and writing script, it was working without any issues. Refer below code FYI I have many kind of scenarios to validate xls row count. Is there any other way to write code optimization like function or Descriptive programming? Kindly suggest your approach. Please refer below code FYI Code: Window("Lilly Science Grid").Page("Page_3").Link("25").Click // clicking link Thanks for your help. Sekhar |