This is a migrated thread and some comments may be shown as answers.

How to handle pdf popups?

3 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 20 Dec 2011, 05:21 PM
Hello everyone!

I'm having trouble closing a browser popup window that points to a pdf file. I'm trying to connect to it using the "Manager.WaitForNewBrowserConnect" method but it keeps timing out.

Can anyone help please?

EDIT: Due to company policy, I can't help with the sample URL but how would you close this page, for example: http://tobi.oetiker.ch/lshort/lshort.pdf ?

EDIT 2: I'm running this on IE and I need to close the "Current Tab". I've tried using "ActiveBrowser.Close" and that returns me the default popup asking "Close All tabs" or "Current tab". Is there any way to just "Close the current tab".

Best regards,
Ricardo

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 20 Dec 2011, 06:10 PM
Hello Ricardo,

First, you must Configure IE to not open new windows in tabs. HTML popups must be opened in a new window to be properly handled in Test Studio.

See my last response in this forum post on how to deal with HTML popups that load PDF files.

Greetings,
Anthony
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Francisco
Top achievements
Rank 1
answered on 23 Feb 2017, 05:06 PM

Is there a solution for this?

I'm having problems closing a pop up/modal that loads a PDF in IE.

ActiveBrowser.Close();

0
Elena
Telerik team
answered on 28 Feb 2017, 12:45 PM
Hello Francisco, 

Please note that your query is duplicating another forum thread you have referred to. Please use it for further details

Thanks for your understanding! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Francisco
Top achievements
Rank 1
Elena
Telerik team
Share this question
or