Selenium-standalone ((free)) -
In wdio.conf.js , the tool is referenced as a service. This abstracts the manual start/stop logic:
after(async function() await server.kill(); // Clean shutdown ); selenium-standalone
docker run -d -p 4444:4444 --shm-size="2g" selenium/standalone-chrome Use code with caution. In wdio
Here is an example of a simple Selenium Standalone test in Python: // Clean shutdown )
If running on a server or CI (like GitHub Actions), use headless mode to save memory and speed up execution.