Sign inSign up

dgtlmoon/selenium

By dgtlmoon

•Updated almost 7 years ago

selenium with locked version

Image
0

1.6K

dgtlmoon/selenium repository overview

⁠Eksponent Selenium+chromerunner+chrome

This is a selenium environment docker image with the follow versions locked in

  • ChromeDriver 2.21.371459
  • google-chrome-stable 52.0.2743.116
  • selenium-server-standalone 2.49.1

We are using these versions because otherwise there are errors with newer configurations, such errors are

  • Closing of media iframe doesnt allow further actions (context not found errors)

Upgrading from Chrome 52 to 53 will give errors like

PHP Fatal error: Call to a member function getParent() on null in features/bootstrap/CKEditorFeatureContext.php on line 15

For CKEditor/WYSIWYG tests

⁠VNC Viewer

Make sure the ports are exposed from the hoster

    ports:
      - "5900:5900"

Connect and view, and your favourite VNC viewer at the IP of the container

Use docker inspect TheName to find the IP

gvncviewer 172.20.0.5

⁠SHM Size fix

If you get unexplained behaviour you may need to increase the SHM Size , bad behaviour could include odd things happening when opening a new window etc.

Try adding the shm_size parameter.

  selenium-chrome:
    image: eksponent/selenium
    ...
    shm_size: 2gb

You will need 1.7.0+ to use this argument, if you're running from CircleCI..

machine:
  pre:
    # 1.7.0-beta onwards supports shm_size
    - sudo pip install docker-compose==1.9.0 -q

Tag summary

Content type

Image

Digest

Size

378.2 MB

Last updated

almost 7 years ago

docker pull dgtlmoon/selenium