π€ SeleniumΒΆ
Weβre running our own Selenium Grid service for simple browser testing.
Important
The PyPi server is deployed via GitLab CI from the Selenium project and is only available from within private networks.
Video recordingΒΆ
Our central Selenium Grid service also supports video recording. Just go to the Selenium Pipelines and do this:
Click
Run Pipeline
Select the
master
branchAdd a new variable
RECORD
with either the valuestart
orstop
Run the pipeline
You can also use this as GitLab multi-project pipeline trigger:
Start Recording:
variables:
RECORD: start
trigger:
project: confirm/selenium
strategy: depend
Selenium Docker imagesΒΆ
There are official Selenium Docker images, which work fine. However, weβre building our own Selenium Docker Images for 2 reasons:
The official Selenium Docker images fail from time to time (due to changes in the APIβs)
The official Selenium Docker images donβt have support for WebGL and crash
Running Selenium locallyΒΆ
To run your own Selenium Grid Docker containers, have a look at the example Compose files or use the selenium-ctl script:
# Get the script.
curl -sSfLo selenium-ctl https://gitlab.confirm.ch/confirm/docker-images/selenium/-/raw/master/selenium-ctl
chmod 755 selenium-ctl
# Enable video support.
#VIDEO=1
# Start the Selenium containers.
./selenium-ctl up -d
# Stop the Selenium containers.
./selenium-ctl down
Note
After running the commands above, you shouldβve a Selenium Grid running on http://localhost:4444/wd/hub
.
Have a look at the selenium-*.yml
Docker Compose files after running selenium-ctl
to see what Docker containers are deployed.