Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- selenium-hub:
- image: selenium/hub:3.141.59-dubnium
- container_name: selenium-hub
- ports:
- - "4444:4444"
- chrome:
- image: selenium/node-chrome:3.141.59-dubnium
- volumes:
- - /dev/shm:/dev/shm
- depends_on:
- - selenium-hub
- environment:
- - HUB_HOST=selenium-hub
- - HUB_PORT=4444
- networks:
- - backend
- nbdatascience:
- container_name: nbdatascience
- image: aabor/nbdatascience
- build: nbdatascience/.
- volumes:
- - /home/$USER/py:/home/jovyan/work/py
- - /home/$USER/.jupyter:/home/jovyan/.jupyter
- ports:
- - "10000:8888"
- environment:
- - TZ="Europe/Kiev"
- restart: always
- networks:
- - backend
- depends_on:
- - chrome
- networks:
- backend:
- driver: bridge
- from selenium import webdriver
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
- cap = DesiredCapabilities.CHROME
- driver = webdriver.Remote(command_executor='localhost:4444', desired_capabilities=cap)
Add Comment
Please, Sign In to add comment