Forum Discussion

fayrehouse's avatar
fayrehouse
Frequent Contributor
11 years ago

Bit of an outside hope for help here (and not directly TC related per se, but...)

Hi All, I won't go into the details of WHY I need to achieve the following here, but: We have a web app under test, that contains a number of links that open PDF docs. I have existing TC...
  • AlexKaras's avatar
    11 years ago
    Hi Steve,



    Just a quick idea: what if you will not click the link (well, all at all you are not testing that the given browser opens pdf reader when you click the link that references pdf file, are you?), but instead:

    a) (Optionally) analyse that the link has correct structure (this is to be on the safe side and guarantee (more or less) that for the correctly set browser the pdf reader should be opened);

    b) Download and save to the disk file from the link (http://support.smartbear.com/viewarticle/8999/)

    c) Explicitly start Adobe Reader from your test code;

    d) Open saved file in Adobe Reader;

    e) Proceed with your existing code :)



    Thoughts?