Skip to content

uts-itd/UTS-Website-Test-Action

Repository files navigation

UTS-Website-Test-Action


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.

Example and usage

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.

Runthrough Breakdown

  1. It will first click on each button on the side bar and then go back to the home page each time it's clicked
  2. Then it will go to the search icon at the top-right of the page to search for 'careers'
  3. Then it will click on the first result that comes up
  4. It will go back to the home page and test the slick arrows right below "LX at UTS"
  5. Then it will click on the article that is present at the time
  6. Steps 4 and 5 will be repeated 2 more times.

Demo(s)

An example of the script sucessfully running on GitHub:

Branches:

  • main, selenium-grid: Run tests on Selenium Grid

Contributing

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published