Member-only story
58 signs that you are still bad at Selenium test automation
3 min readJan 2, 2020
If your Selenium automation code does any of following, chances are good that your projects need serious changes.
The following items are not listed in a specific order.
SELENIUM TESTS
- Tests are dependent on each other
- Tests work only on a specific environment (test) and not on all environments (dev, staging)
- Tests work only on Windows and not in Linux
- Tests can be executed sequentially but not in parallel
- Tests run in virtual machines but not in docker containers
- Tests read sensitive information from property files instead of environment variables
- Tests work on a single browser and not on all major browsers
- Tests work on a specific language only (English but not French or Spanish, if the site supports multiple languages)
- Tests work only in headed mode, not headless
- Tests use Selenium classes, methods and objects
- Tests use hard-coded test data that is valid for a single environment
- Tests have more than 1 purpose
- Tests have more than 20 lines of code