Unable to disable PDF viewer pluggin after chrome driver update happened in selenium
Reported by
shivakum...@gmail.com,
May 5 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Steps to reproduce the problem:
1. Run the selenium script which has code to disable pdf viewer
2. And observe that PDF is downloaded not opened in the new Tab of chrome
3. but PDf opened in new tab
What is the expected behavior?
PDF should be downloaded instead of opening in new tab
What went wrong?
after chrome driver update this code is not working
Did this work before? N/A
Chrome version: 57.0.2987.133 Channel: n/a
OS Version: 6.3
Flash Version: Shockwave Flash 25.0 r0
Code which i used to disable pdf viewer
options.AddUserProfilePreference("download.default_directory", @"C:\temp");
if (disableBrowserPDFViewer)
{
options.AddUserProfilePreference("profile.default_content_settings.popups", 0);
options.AddUserProfilePreference("download.prompt_for_download", true);
options.AddUserProfilePreference("plugins.plugins_disabled", new[] { "Chrome PDF Viewer" });
//options.AddUserProfilePreference("plugins.plugins_disabled", new[] { "Chrome PDF Viewer" });
//options.AddUserProfilePreference("plugins.always_open_pdf_externally", false);
}
,
May 12 2017
,
May 12 2017
Since the bug was reported for 57 and we're updating to 58 right now, could you please update once your Chrome is at 58.0.3029.110?
,
May 23 2017
What happens if you uncomment the plugins.always_open_pdf_externally line in your script? The PDF download settings changed to that in bug 628014 , since chrome://plugins is gone.
,
Jun 22 2017
No feedback was received in the last 30 days from reporter "shivakumarswamy22@gmail.com", so archiving this. Please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by eostroukhov@chromium.org
, May 5 2017