Commit 073597cf authored by Dominique Barton's avatar Dominique Barton 🦄
Browse files

DOC: Add Selenium

parent fad05936
Pipeline #7303 passed with stages
in 50 seconds
Selenium
========
`Selenium <https://www.selenium.dev/>`_ is a browser automation project.
We're using `Selenium`_ to automate browser testing in our Python & Django projects.
To test multiple browsers the same time, we're using `Selenium Grid <https://www.selenium.dev/documentation/en/grid/>`_.
Selenium Docker Images
----------------------
There are `official Selenium Docker images <https://github.com/SeleniumHQ/docker-selenium>`_, which work fine. However, we're building our `own Selenium Docker Images <https://git.confirm.ch/confirm/docker-images/selenium>`_ for 2 reasons:
1. The `official Selenium Docker images`_ fail from time to time (due to changes in the API's)
2. The `official Selenium Docker images`_ don't have support for `WebGL <https://get.webgl.org/>`_ and crash
Selenium Compose Files
----------------------
To run your own Selenium Grid Docker containers, have a look at the `example Compose files <https://git.confirm.ch/confirm/docker-images/selenium/-/tree/master/compose>`_ or use the `selenium-ctl <https://git.confirm.ch/confirm/docker-images/selenium/-/raw/master/selenium-ctl>`_ script:
.. code-block:: bash
# Get the script.
curl -sSfLo selenium-ctl https://git.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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment