Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default LiveView (VNC) password "secret" in selenium grid #1772

Closed
hager-yousri opened this issue Jan 17, 2023 · 4 comments

Comments

@hager-yousri
Copy link

What happened?

I use Robot Framework and I integrate with selenium grid to run the tests and see live video for the run

When I open the session to see the run live it asks me about password which is by default "secret"

I need to change this password so how can I do this please?

208644997-1e824759-ab03-4bda-9563-686278f4aa62

Command used to start Selenium Grid with Docker

I added this yaml file in my robot framework project

version: "3"
services:
HubService:
image: selenium/hub:latest
container_name: seleniumHub
ports:
- "4445:4444"

ChromeService:
image: selenium/node-chrome:latest
shm_size: "2gb"
ports:
- "5900"
- "7900"
environment:
- SE_EVENT_BUS_HOST=seleniumHub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
#- SE_NODE_MAX_SESSIONS=3
depends_on:
- HubService

Then I start the docker 
docker compose -f seleniumGrid.yml up -d

Then I run the tests and open this url to watch the run live
http://localhost:4445/wd/hub

Relevant log output

I see in this documentation https://github.com/seleniumhq/docker-selenium/#debugging

that if we need to change "secret password" we need to follow this
" If you get a prompt asking for a password, it is: secret. If you wish to change this, 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:4.7.2-20221219
#FROM selenium/node-edge:4.7.2-20221219
#FROM selenium/node-firefox:4.7.2-20221219
#Choose the FROM statement that works for you.

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

but it is not clear for me at all how can I apply one of these solutions so could you please add detailed steps what should i do in my case to change the password?

Operating System

windows, ubuntu

Docker Selenium version (tag)

latest

@diemol
Copy link
Member

diemol commented Jan 18, 2023

Just pushed a change to the README to make it more clear.

@d2a-raudenaerde
Copy link

Would it be possible to set it using an environment variable? Customizing images by rebuilding them is a bit of a hassle, especially when upgrading.

@diemol
Copy link
Member

diemol commented Mar 13, 2023

Can you please open a feature request? Maybe someone will have time to research how to do it.

prashanth-volvocars pushed a commit to prashanth-volvocars/docker-selenium that referenced this issue Jun 29, 2023
Copy link

github-actions bot commented Dec 9, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants