How to open pdf in chromedriver 2.15 without downloading it

I recently upgraded to Chromedriver 2.15

Now, when I click on the link to the pdf file, it is automatically loaded, and not displayed on a new tab, as before.

<a id="my_pdf_file" format="pdf" target="_blank" href="/my_pdf_file.pdf">My PDF File</a>

Is there a way to resume the old pdf display behavior in a new tab?

+4
source share
2 answers

This is currently a problem with Chrome, not with Chromedriver:

Unable to open pdf file in chrome since upgrade to version 42.0.2311.90

At some point between M41 and M42, the behavior of the -test type switch was changed so that PDF files load instead of displaying.

dev Chrome 44.0.2391.0 dev-m (64 bit), Selenium, PDF , , PDF .

, :

Chrome 44.0.2391.0 dev-m (64 bit)
Selenium 2.45
Chrome Driver 2.15

, dev Chrome , , , , .

+2

Chrome Watir

>

/ Chrome PDF (chrome://plugins/)

- . " ".

0

Source: https://habr.com/ru/post/1583838/


All Articles