Phantomjs ignore the links to pdf that hosted on site

28 views
Skip to first unread message

Oleksii Golubkov

unread,
Sep 16, 2017, 3:14:07 PM9/16/17
to phantomjs
Tested with: c#, selenium 3.5.2, phantomjs 2.1.1, 2.5.0, ghostdriver 1.2.0, 2.1.0

Example link: http://che.org.il/wp-content/uploads/2016/12/pdf-sample.pdf.

What is expected: as far as I understand, phfntomjs has no tools to display the pdf, but I was expecting at least to get a link to the required file and download it later with another tool.

What we have:
- if open as url - fully ignored.
driver.Navigate().GoToUrl(http://che.org.il/wp-content/uploads/2016/12/pdf-sample.pdf);

- if open as script - blanc page without any references to file.
(driver as IJavaScriptExecutor).ExecuteScript($"window.open('http://che.org.il/wp-content/uploads/2016/12/pdf-sample.pdf');")




Reply all
Reply to author
Forward
0 new messages