VB SCRIPT to click on specific links on webpage and store related data - 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: VB SCRIPT to click on specific links on webpage and store related data (/Thread-VB-SCRIPT-to-click-on-specific-links-on-webpage-and-store-related-data) |
VB SCRIPT to click on specific links on webpage and store related data - ACCBAJPA - 04-01-2013 Hi, I am new to DP, I need to automate the following scenario. open http://www.emc.com/utilities/globalsiteselect.jhtml then one by one click on all the country name displayed on the webpage ie afganistan, albania, algeria.....till Zambia, and for each country link clicked, record the URL its navigating to and the country name displayed at the right top of page, for example when you click Afghanistan it opens http://middle-east.emc.com/index.htm?fromGlobalSiteSelect and the country name displayed at the right top is Middle East. so the result should be Afghanistan-->http://middle-east.emc.com/index.htm?fromGlobalSiteSelect--> Middle East Please help. I badly need to automate . RE: VB SCRIPT to click on specific links on webpage and store related data - ACCBAJPA - 04-02-2013 Code: I have come up with the following code for the above problem,it runs fine for the first iteration, but it throws general run error at the second iteration, where the value of i=1. what is causing this error ?? |