web_link is not working

Hi

I have a busy message I need to click on , it however fails every time I click it. When I debug, I can clearly see the link so it should work. 

it looks something like this:

web_link("https://{URL}/thefullurl/", 
            "Text=https://{URL}/thefullurl/", 
            "Snapshot=t2.inf", 
            LAST);

Note: I have used web_link many times before. not sure why it isn't working this time. Please note I am clicking on an image.

Any suggestions. I was thinking instead of clicking on the image since it is failing, I can reload the page. would this call :  web_url(.....) reload the whole page ?

thanks

  • Suggested Answer

    0  

    , "it however fails every time I click it" Please do not trigger my imagination, be more precise.

    In general, what I do is just record the call in your browser with network tracing (open debug tools of browser (F12); go to network tab). Click on the button and see how the call looks in the browser: Check headers, etc.

    However in this particular case you might have a look to web_url help page. You might note that here is no "Text=" argument, but an "URL=" argument.

    P.S.

    I've made that kind of mistakes my self as well and most of time a quick code review of a colleague makes things clear. The more experienced you are the more likely you will hit this kind of errors. Experience make you read code at structural level and not at word-level. A very good book about this is "The programmers brain" I think every one that guides colleagues and like to have a better understanding on how to learn efficiently should read this book.

    How to ask questions

    Reward contributions via likes or 'verified answers'

  • 0 in reply to   

    thank you   for the reference and for your response, much appreciated