|
| 1 | +# Python-Selenium-Action |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +<div align="center"> |
| 6 | + <img height="400" src="https://i.imgur.com/s0CDqF5.png" /> |
| 7 | + |
| 8 | + <br> |
| 9 | + <small> <b><i>Show your support!</i> </b></small> |
| 10 | + <br> |
| 11 | + <a href="https://github.com/MarketingPipeline/Python-Selenium-Action"> |
| 12 | + <img title="Star on GitHub" src="https://img.shields.io/github/stars/MarketingPipeline/Python-Selenium-Action.svg?style=social&label=Star"> |
| 13 | + </a> |
| 14 | + <a href="https://github.com/MarketingPipeline/Python-Selenium-Action/fork"> |
| 15 | + <img title="Fork on GitHub" src="https://img.shields.io/github/forks/MarketingPipeline/Python-Selenium-Action.svg?style=social&label=Fork"> |
| 16 | + </a> |
| 17 | + </p> |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +No need to struggle to figure out how to run a Python Selenium script with a [GitHub Action](https://github.com/features/actions). |
| 25 | + This is a <b>ready to use</b> template for running Selenium with Python via [GitHub Actions](https://github.com/features/actions) either headless or non-headless. <br> Comes with support already provided for taking screenshot's & more via [PyVirtualDisplay](https://pypi.org/project/PyVirtualDisplay/)! |
| 26 | +</div> |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +## Example and usage |
| 31 | + |
| 32 | + |
| 33 | +To use <b><i>Github Action</b></i>: |
| 34 | + |
| 35 | +- Use this |
| 36 | +[template](https://github.com/MarketingPipeline/Python-Selenium-Action/generate) |
| 37 | + |
| 38 | +- Run the action "Run Selenium On GitHub Action" which will print GitHub site title. |
| 39 | + |
| 40 | +- Make changes as needed to the Python script <code>Selenium-Template.py</code>. |
| 41 | + |
| 42 | +- If you change the name Selenium-Template.py - reflect the changes in the GitHub Action <code>Selenium-Action_Template.yaml</code> file. |
| 43 | + |
| 44 | +- Make changes as needed to the <code>Selenium-Action_Template.yaml</code> file. |
| 45 | + |
| 46 | + |
| 47 | +<br> |
| 48 | + |
| 49 | +#### Demo(s) |
| 50 | + |
| 51 | +<p align="center"> |
| 52 | + <img alt="" src="https://i.imgur.com/qtzEibg.png" width="500" height="320" /> |
| 53 | +</p> |
| 54 | + |
| 55 | +<div align="center"> |
| 56 | +This image was taken via a <a href="https://github.com/features/actions">GitHub Action</a> |
| 57 | + </div> |
| 58 | + |
| 59 | +<br> |
| 60 | +An example of the template sucessfully running on GitHub: |
| 61 | +<br> |
| 62 | + |
| 63 | + - [Results From Successful Python Selenium Action](https://github.com/MarketingPipeline/Python-Selenium-Action/blob/main/GitHub_Action_Results.txt) |
| 64 | + |
| 65 | +- [Successful Action Run](https://github.com/MarketingPipeline/Python-Selenium-Action/actions/runs/2412796846) |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +## Contributing  |
| 71 | + |
| 72 | +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! |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +See also the list of |
| 77 | +[contributors](https://github.com/MarketingPipeline/Python-Selenium-Action/graphs/contributors) who |
| 78 | +participate in this project. |
| 79 | + |
| 80 | +## License  |
| 81 | + |
| 82 | +This project is licensed under the MIT License - see the |
| 83 | +[LICENSE.md](https://github.com/MarketingPipeline/Python-Selenium-Action/blob/main/LICENSE) file for |
| 84 | +details. |
| 85 | + |
| 86 | + |
0 commit comments