Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kuro-shiv/Selenium-Automation-OpenSource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Selenium Automation Practice Repository

Learn Selenium with Python using real-world websites!
Practice, contribute, and master browser automation with hands-on examples.
Linked with Next-Gen AI Blog and Automation_Selenium_Python.


⭐ Why Star This Repo?

  • Real Selenium Projects: Practice automation on actual websites.
  • Beginner to Advanced: Structured examples for all skill levels.
  • Open Source & Community Driven: Contribute, suggest, and collaborate.
  • Linked Tutorials: Step-by-step guides on My Blog.
  • SEO Keywords: Selenium, Python, Automation, Testing, Open Source, Practice, Tutorial.

πŸ“‚ Repository Structure

Selenium-Automation-Practice/
│── README.md                # Documentation
│── requirements.txt         # Dependencies
│── .gitignore               # Ignore unnecessary files
│── CONTRIBUTING.md          # How to contribute
β”‚
β”œβ”€β”€ basics/                  # Beginner level tests
β”‚   β”œβ”€β”€ test_open_browser.py
β”‚   β”œβ”€β”€ test_navigation.py
β”‚   β”œβ”€β”€ test_locators.py
β”‚
β”œβ”€β”€ intermediate/            # Intermediate level tests
β”‚   β”œβ”€β”€ test_forms.py
β”‚   β”œβ”€β”€ test_login.py
β”‚   β”œβ”€β”€ test_dropdowns.py
β”‚
β”œβ”€β”€ advanced/                # Advanced level tests
β”‚   β”œβ”€β”€ test_waits.py
β”‚   β”œβ”€β”€ test_iframes.py
β”‚   β”œβ”€β”€ test_file_upload.py
β”‚
└── resources/               # Extra resources
    β”œβ”€β”€ testing_sites.md
    └── sample_data.json

⚑ Getting Started

1️⃣ Fork & Clone

Click Fork (top right) to create your copy.
Then clone:

git clone https://github.com/YOUR_USERNAME/Selenium-Automation-Practice.git
cd Selenium-Automation-Practice

2️⃣ Install Dependencies

Python 3.8+ required.

pip install -r requirements.txt

Main Packages:

  • selenium – Browser automation
  • pytest – Testing framework
  • pytest-html – HTML test reports

3️⃣ Run Your First Test

pytest basics/test_open_browser.py --html=report.html

Open report.html in your browser to view results.


🌐 Practice Websites


πŸ“ Example Test Case

# basics/test_open_browser.py
from selenium import webdriver
from selenium.webdriver.common.by import By
import time

def test_open_google():
    driver = webdriver.Chrome()
    driver.get("https://www.google.co.in/")
    assert "Google" in driver.title
    search_box = driver.find_element(By.NAME, "q")
    search_box.send_keys("Selenium automation python")
    time.sleep(2)
    driver.quit()

πŸ“– Learning Path

  • Basics: Browser, Locators β†’ basics/
  • Intermediate: Forms, Login β†’ intermediate/
  • Advanced: Waits, iFrames, Uploads β†’ advanced/
  • Tutorials: Next-Gen AI Blog

🀝 How to Contribute

We ❀️ contributions!

  1. Fork the repo
  2. Create a branch: feature-your-feature
  3. Add your test in the right folder
  4. Run & verify with pytest
  5. Commit & push:
    git add .
    git commit -m "Added new test case for dropdown"
    git push origin feature-your-feature
  6. Open a Pull Request
    See CONTRIBUTING.md for details.

πŸ“Š Test Reporting

Generate an HTML report:

pytest --html=report.html

Open report.html in your browser.


πŸ“œ License

MIT License – Free to use, modify, and distribute with attribution.


πŸ™Œ Credits


⭐ Star & Share!

If you find this project helpful, star the repo and share with others!
Help us grow the Selenium automation community πŸš€


πŸ”Ž Recommended GitHub Topics

selenium
python
automation
testing
pytest
open-source
practice
tutorial
webdriver
qa

Boost your skills. Contribute. Star. Share.
Happy Testing!

About

πŸš€ Practice Selenium automation with Python | Beginner β†’ Advanced test cases using real websites

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •