Sign inSign up

dnguyen3/selenium-node-chrome-debug

By dnguyen3

•Updated almost 10 years ago

selenium-node-chrome-debug

Image
0

1.1K

dnguyen3/selenium-node-chrome-debug repository overview

⁠Selenium Grid Node - Chrome Debug

This image is only intended for development purposes! Runs a Selenium Grid Node with a VNC Server to allow you to visually see the browser being automated. Since it runs additional services to support this it is too heavy weight for usage within a Selenium Grid cluster.

⁠Dockerfile

dnguyen3/selenium-node-chrome-debug Dockerfile⁠

⁠How to use this image

First, you will need a Selenium Grid Hub that the Node will connect to.

$ docker run -d -P --name selenium-hub dnguyen3/selenium-hub

Once the hub is up and running will want to launch nodes that can run tests.

$ docker run -d -P --link selenium-hub:hub dnguyen3/selenium-node-chrome-debug

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

$ docker port <container-name|container-id> 5900
#=> 0.0.0.0:5900

Using RealVNC you can look in view only mode, to avoid accidentally messing up your tests, utilizing our vncview script⁠.

$ ./bin/vncview 127.0.0.1:5900

If you are running Boot2Docker on Mac 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 dnguyen3/selenium-node-chrome-debug:2.53.1

RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd

Tag summary

Content type

Image

Digest

Size

330.5 MB

Last updated

almost 10 years ago

docker pull dnguyen3/selenium-node-chrome-debug