Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ax-va/python-selenium-raghavendra-2021
Python Selenium is demonstrated by examples and tests based on the Sujay Raghavendra's book "Python Testing with Selenium: Learn to Implement Different Testing Techniques Using the Selenium WebDriver" published by Apress in 2021. The book examples have been modified and also updated to Selenium 4.
https://github.com/ax-va/python-selenium-raghavendra-2021
ax-va pageobject-pattern python selenium selenium-python selenium4 test-automation testing unittest
Last synced: about 16 hours ago
JSON representation
Python Selenium is demonstrated by examples and tests based on the Sujay Raghavendra's book "Python Testing with Selenium: Learn to Implement Different Testing Techniques Using the Selenium WebDriver" published by Apress in 2021. The book examples have been modified and also updated to Selenium 4.
- Host: GitHub
- URL: https://github.com/ax-va/python-selenium-raghavendra-2021
- Owner: ax-va
- Created: 2023-01-19T09:53:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T00:15:15.000Z (1 day ago)
- Last Synced: 2024-11-18T01:19:54.812Z (1 day ago)
- Topics: ax-va, pageobject-pattern, python, selenium, selenium-python, selenium4, test-automation, testing, unittest
- Language: Python
- Homepage:
- Size: 62 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python-Selenium-Raghavendra-2021
Python Selenium is demonstrated by examples and tests based on the Sujay Raghavendra's book *"Python Testing with Selenium: Learn to Implement Different Testing Techniques Using the Selenium WebDriver"* published by *Apress* in 2021. The book examples have been modified and also updated to **Selenium 4**. They end with an introduction to **unittest** and writing a Google search test using **Page Object Model** / **Page Object Pattern**.
You can see the examples in the `examples` directory and the tests themselves in the `tests` one. In `utils/highlighter.py`, the Highlighter class is written for highlighting HTML elements by changing the element style locally. In `utils/screenshoter.py`, the `Screenshoter` class encapsulates taking screenshots to make this task easier. Additionally, in the `pom` folder, Page Object Model is represented in a very simple form. Then that model is inherited to describe the Google search action in browser.
The webdrivers containing in the project may be out of date, in which case you need to update them or download them in a different way than suggested here. It's worth noting that the paths of Firefox binaries are hardcoded and may differ from the paths on your system. You can check that in `LOCATIONS` in `utils/locations.py`.
Verified with Python 3.8 and the following package versions:
```
selenium==4.8.2
webdriver-manager==4.0.1
PyAutoGUI==0.9.53
Pillow==9.4.0
```**The release process of ChromeDriver 115 and above is integrated with that of Chrome:**
https://chromedriver.chromium.org/downloads/version-selection