fayrehouse
12 years agoFrequent Contributor
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 code for handling PDFs within Adobe Reader - but these are PDFs already saved locally. By default, when I click a PDF link in the web app, it opens the PDF in the browser built in reader. I don't want this to happen - I want it to fire up Adobe Reader, so I can use my existing code.
I have a requirement to test against Chrome (latest), IE (8-11), Safari (latest), and FF (latest). Obviously, they all have different means of enabliing / disabling the various extensions / plugins etc they support.
I need to automate this enabling / disabling. You may be wondering "why not just do that manually first" - the reason for this is that our automation is going to be run on a number of different hosts - and I want to be SURE that whatever host is set up correctly, as part of the test run.
I've found the "preferences" text file for Chrome that has the required settings - and I gather that FF does it via config files (not registry) aswell - but cannot find the required file. Not yet found the answer for IE, and not yet been brave enough to look for Safari!
So has anyone automated plugin enabling / disabling for each of the above browsers?
Please?! :)
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 code for handling PDFs within Adobe Reader - but these are PDFs already saved locally. By default, when I click a PDF link in the web app, it opens the PDF in the browser built in reader. I don't want this to happen - I want it to fire up Adobe Reader, so I can use my existing code.
I have a requirement to test against Chrome (latest), IE (8-11), Safari (latest), and FF (latest). Obviously, they all have different means of enabliing / disabling the various extensions / plugins etc they support.
I need to automate this enabling / disabling. You may be wondering "why not just do that manually first" - the reason for this is that our automation is going to be run on a number of different hosts - and I want to be SURE that whatever host is set up correctly, as part of the test run.
I've found the "preferences" text file for Chrome that has the required settings - and I gather that FF does it via config files (not registry) aswell - but cannot find the required file. Not yet found the answer for IE, and not yet been brave enough to look for Safari!
So has anyone automated plugin enabling / disabling for each of the above browsers?
Please?! :)
- 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?