Guest User

Untitled

a guest
Jan 16th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. version: '3'
  2. services:
  3. selenium-hub:
  4. image: selenium/hub:3.141.59-dubnium
  5. container_name: selenium-hub
  6. ports:
  7. - "4444:4444"
  8. chrome:
  9. image: selenium/node-chrome:3.141.59-dubnium
  10. volumes:
  11. - /dev/shm:/dev/shm
  12. depends_on:
  13. - selenium-hub
  14. environment:
  15. - HUB_HOST=selenium-hub
  16. - HUB_PORT=4444
  17. networks:
  18. - backend
  19. nbdatascience:
  20. container_name: nbdatascience
  21. image: aabor/nbdatascience
  22. build: nbdatascience/.
  23. volumes:
  24. - /home/$USER/py:/home/jovyan/work/py
  25. - /home/$USER/.jupyter:/home/jovyan/.jupyter
  26. ports:
  27. - "10000:8888"
  28. environment:
  29. - TZ="Europe/Kiev"
  30. restart: always
  31. networks:
  32. - backend
  33. depends_on:
  34. - chrome
  35. networks:
  36. backend:
  37. driver: bridge
  38.  
  39. from selenium import webdriver
  40. from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
  41. cap = DesiredCapabilities.CHROME
  42. driver = webdriver.Remote(command_executor='localhost:4444', desired_capabilities=cap)
Add Comment
Please, Sign In to add comment