Skip to content

Docker Automated Build Repository for siomiz/chrome -- Google Chrome via VNC (or via Chrome Remote Desktop)

License

Notifications You must be signed in to change notification settings

yishenggudou/vnc-chrome-remote

 
 

Repository files navigation

Google Chrome via VNC and Remote Debug For Selenium Remote Driver

intro

Usage

build docker images

edit Makefile and change BASE_IMAGE_NAME var

then run

make build-image

run local test

make test-run

or manaue run via docker

mkdir -p ${PWD}/user-profile
mkdir -p ${PWD}/downloads
docker run -p 6900:5900 \
  -p 9222:9223 \
  --cpus=".8" \
  --memory="512g" \
  -v ${PWD}/user-profile:/home/chrome/userData \
  -v ${PWD}/downloads:/home/chrome/Downloads  \
  --name chrome-remote \
  registry.dafengstudio.cn/vnc-chrome-remote:0.0.1

connect va vnc

img_1.png

https://www.realvnc.com/en/connect/download/viewer/

use via selenium

from selenium import webdriver  
from selenium.webdriver.chrome.options import Options  
  
chrome_options = Options()  
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9223")  
driver = webdriver.Chrome(options=chrome_options)  
driver.get("https://www.baidu.com")
print(driver.title)

then you will see the vnc client

Kapture 2023-06-16 at 23.17.56.gif

and

img.png

fork from https://github.com/siomiz/chrome

About

Docker Automated Build Repository for siomiz/chrome -- Google Chrome via VNC (or via Chrome Remote Desktop)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 37.4%
  • Shell 28.9%
  • Dockerfile 23.1%
  • Makefile 10.6%