check broken link 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: check broken link in a page (/Thread-check-broken-link-in-a-page) |
check broken link in a page - deveshbhatt29 - 01-18-2014 I created a script that will check broken link in a page means valid url is that or not but i am not getting a url which one is call by javascript. Error is show in attachment 'Find out all the links in the page using ChildObjects Code: Set oLink = Description.Create 'Find out the count of links Code: iTotalLinks = oAllLinks.Count 'Loop through all the links to find if the link is broken or not Code: For i=0 to iTotalLinks - 1 'Send the Request to the Server and capture the response Code: objWinHTTP.Send |