Show your support!
No need to struggle to figure out how to run a Python Selenium script with a GitHub Action.
This is a ready to use template for running Selenium with Python via GitHub Actions on non-headless.
To use Github Action:
-
Push/merge any code to the main branch and it will run the tests on the UTS website on Github Actions
-
Make changes as needed to the Python script
utilities.py
. -
Make changes as needed to the
Selenium-Action.yaml
file. For Github actions.
- It will first click on each button on the side bar and then go back to the home page each time it's clicked
- Then it will go to the search icon at the top-right of the page to search for 'careers'
- Then it will click on the first result that comes up
- It will go back to the home page and test the slick arrows right below "LX at UTS"
- Then it will click on the article that is present at the time
- Steps 4 and 5 will be repeated 2 more times.
An example of the script sucessfully running on GitHub:
- main, selenium-grid: Run tests on Selenium Grid
Want to improve this? Create a pull request with detailed changes / improvements! If approved you will be added to the list of contributors of this awesome project!
See also the list of contributors who participate in this project.