Skip to content

Can't print page #592

Closed
Closed
@mrSingh007

Description

@mrSingh007

I am trying to print page with window.print();. It opens a pdf print view but then suddenly get closed.
If I use chrome driver without docker, then its working.
--->
I am using docker: node-chrome-debug which is working perfect. On my test page there is one link, if you click on that it just open a chrome window to print that page. where you can save that page as PDF.
To try this, just open chrome and navigate to e.g https://www.amazon.de/ . Now in console just enter window.print(); . You will see a print option page. This page is not opening in docker chrome node. Its opens for a few seconds and then get closed itself.
<-----Thanks for any info or help

Meta -

Image(s): selenium/node-chrome-debug 3.5.3, selenium/hub 3.5.3

Docker-Selenium Image Version(s):

Docker Version: 17.07.0-ce

OS: Linux

Expected Behavior -

Same way as firefox is capable for bringing option to view page as PDF and download as PDF, chrome should also do. Chrome only get closed in docker, without docker selenium/chrome driver can show page as PDF and can be downloaded as PDF.

Actual Behavior -

This functionality works perfect with selenium/node-firefox:3.5.3-boron

Commands used -

docker pull selenium/hub
docker pull slenium/node-chrome-debug
docker pull selenium/node-firefox-debug

docker run -d -p 4446:4444 --name selenium-hub -P selenium/hub
docker run -d -P --link selenium-hub:hub selenium/node-chrome-debug
docker run -d -P --link selenium-hub:hub selenium/node-firefox-debug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions