Why programming ? If you are sure of the target page loading, you may try adding a synchronization point or a checkpoint with a larger timeframe.
On Sunday, May 26, 2013 12:14:13 PM UTC+5:30, sagar shinde wrote: > > Hi, > > I am creating a script to be used for a website. The website has a main > page which contains a link for another page (target page). > > I am able to click the link using QTP however the Website is sort of > unstable, If you click the link for target page sometimes it takes huge > amount of time to load the target page (Or even fails to navigate to target > page) If user clicks the link again while target page is loading the page > loads quickly. > > I wanted to place a work around for this using descriptive programming. > Basically following is the thing I want to achieve > > 1. Click the link (for Target page) in Main page > > 2. Wait for 10-15 Sec and check if the target page is loaded > > 3. If the target page is loaded. Do nothing > > 4. If Target page is not loaded. Click the link again while the page is > loading > > 5. Repeat steps 2-4 for 3 times > > > > Can you please help me write a function for this? > > > > Thanks in advance > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
