TM ART TryScript - Why do I receive the Error - WebPageLink HTTP: 1060 - HTML Hyperlink not found., "Link Name"? Dynamic Link

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Transaction Management Application Response Time - Infrastructure Edition


    COMPONENT:

    BMC Transaction Management Application Response Time Central


    APPLIES TO:

    BMC Transaction Management Application Response Time - Service Level Edition



    QUESTION:

     
       Why do I receive the Error - WebPageLink HTTP: 1060 - HTML Hyperlink not found., "Link Name"?  


    ANSWER:

     

    Legacy ID:KA343774

      
        
      
                                                  
     

    This error occurs when the replay engine cannot find the link specified on the current page. 
     
    One reason this occurs is because the site is dynamic, with the content (hence the links) changing each time you visit, or are updated frequently e.g. a "What's New" section. The WebPageLink that is recorded in the BDL script refers to a link that is either dynamic (i.e. the name of the link changes) or has been removed. 

    It can also occur if there was an error on the previous page and the current page is not the one expected; if Context has been lost for the previous WebPageUrl call and thus the link cannot be found (this can be caused by breaking the script into multiple transactions during the record process).

    If the link is dynamic you can edit the script and reference the link as a number then specify a NULL instead of the link name in the WebPageLink.

    If you look at your script you should see that the link in question has a number associated with it, it is this number that you use. 
     

           
            
       .     WebPageLink("ShopIt 5.1", "ShopIt - Greetings"); // Link 3
           


    becomes
     

           
            
              WebPageLink(NULL, "ShopIt - Greetings", 3); // Link 3
           


    Please see the online help for further details

    As mentioned above, this can also occur if there was an error on the previous page and the current page is not the one expected. In that case the solution of putting in the link number mentioned above will not help. You will have to determine why the current page is not the one expected. Perhaps you need to customize the script to handle session ids or you need to change the User Agent field in the HTTP header or rarely, the solution is to change the browser emulation level to Browser-level API.

      
      
    Here is another example: 

    WebPageSubmit("logoutform", LOGOUTFORM138, "MyWebPage (#1)"); // Form 1  

    This could be changed to this: 

    WebPageSubmit(NULL, LOGOUTFORM138, "MyWebPage (#1)", 1); // Form 1  
      

     


    Article Number:

    000030119


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles