disable chrome://flags/#click-to-open-pdf

33 views
Skip to first unread message

Javier Ivan Montero

unread,
Sep 18, 2018, 6:13:30 PM9/18/18
to ChromeDriver Users
Greetings from Argentina, my existential problem is that I do not have the option that I should add to the preferences of chromedriver, to disable the option "Click to open embedded PDFs" from chrome: // flags.
thank you very much for the help you can give me
success for the whole group

P.D .: I use selenium from python, I attach part of my code for the instance of chromedriver in python
chromedri.py

Caleb Rouleau

unread,
Sep 18, 2018, 6:34:13 PM9/18/18
to javieri...@gmail.com, ChromeDriver Users
Hi Javier,

You can add the argument

--disable-features=ClickToOpenPDFPlaceholder

to ChromeOptions:

 co.add_argument("--disable-features=ClickToOpenPDFPlaceholder")

I'm not certain whether this will work. Good luck!

--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Caleb Rouleau
Chrome and Widevine EngProd

Javier Ivan Montero

unread,
Sep 18, 2018, 6:42:12 PM9/18/18
to crou...@google.com, chromedri...@googlegroups.com
IT WORKS PERFECTLY
I investigated for different sides, and I did not find the solution, two days ago I was with this, a thousand thousand thanks

Reply all
Reply to author
Forward
0 new messages