Docker-selenium-chrome View Browser

I’m new to docker and have been messing with Docker and selenium grid for a week.

Here are the things I did,

  • how to run a daemon process in docker container with API/v1.5?
  • Is it possible to use cloud-init and heat-cfntools inside a Docker container?
  • Docker on EC2, RUN command in dockerfile not reading environment variable
  • What does Go Version means?
  • Deploying a Spark application on a container
  • Unable to map docker volume with colon
    1. Created a container for Selenium grid and google chrome.
    2. Modified my protractor script and point it to hub created in Step 1
    3. I could see the chrome driver logs using docker logs <container-name>

    My question is , is there a way that I can see the browser while the script is running?

  • Docker bridge over IPSec - Connection reset by peer with Tomcat (but not Nginx)
  • docker container won't start because an existing pid file
  • mvn jetty:run-forked inside a docker container?
  • Why is there no logs using “docker run image command” to start container?
  • Firefox doesn't wait for a page load Webdriverio
  • Is there a way to stop a docker container, if a linked/upstream container is gone?
  • One Solution collect form web for “Docker-selenium-chrome View Browser”

    You can use VNC. Here’s the information from the official repo

    You can acquire the port that the VNC server is exposed to by running:

    $ docker port <container-name|container-id> 5900

    In case you have RealVNC binary vnc in your path, you can always take a look, view only to avoid messing around your tests with an unintended mouse click or keyboard interrupt:

    $ ./bin/vncview
    If you are running Boot2Docker on OS X then you already have a VNC client built-in. You can connect by entering vnc://<boot2docker-ip>:49160 in Safari or Alfred.

    When you are prompted for the password it is secret. If you wish to change this then you should either change it in the /NodeBase/Dockerfile and build the images yourself, or you can define a Docker image that derives from the posted ones which reconfigures it:

    #FROM selenium/node-chrome-debug:2.53.0
    #FROM selenium/node-firefox-debug:2.53.0
    #Choose the FROM statement that works for you.
    RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.