Giter Site home page Giter Site logo

dbeniamin / python_selenium_automation Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 88 KB

Selenium Automation with Python for https://the-internet.herokuapp.com/

License: MIT License

Python 100.00%
selenium selenium-python selenium-webdriver automation-testing python3 python python-script seleniumwebdriver testing-framework webdriver

python_selenium_automation's Introduction

SELENIUM Automation with Python for https://the-internet.herokuapp.com

This project showcases Selenium automation testing for various functionalities provided by the-internet.herokuapp.com. It includes test cases with a normal structure and unittest-based structure.

Introduction:

In the world of web development and software testing, automated testing is an integral part of ensuring the reliability and functionality of applications. This project focuses on automating tests for the-internet.herokuapp.com, a platform designed for practicing and showcasing different web elements and scenarios.

Key Features:

  • Cross-Browser Testing: Verify that your web application works seamlessly across different browsers.
  • Element Interaction: Learn how to interact with various HTML elements using Selenium WebDriver.
  • Page Object Model (POM): Understand and implement the Page Object Model for better test structure and maintainability.
  • Unittest Framework: Explore test case organization using the unittest framework in Python.

Project Structure:

tests: This folder contains all the Selenium test cases.

  • normal_structure: Test cases organized in a normal structure and have the name of tested feature.
  • unittest_structure: Test cases organized using the unittest framework and have the name of tested feature alongside a _unittest mention.

Requirements:

  • unittest
  • selenium
  • requests
  • urllib3
  • pyautogui

Installation:

  1. Fork this repository:

    Click on the "Fork" button at the top-right of this page to create your own copy of these Selenium automation scripts.

  2. Clone your forked repository:

    Copy and run the desired scripts.

Usage:

Normal Structure Scripts

To use the scripts with a normal structure:

  1. Copy the content of scriptname.py .
  2. Paste the content into a new Python file (e.g., my_dropdown_script.py).
  3. Save the file and run it.

Feel free to modify and adapt the script based on your specific requirements.

Unittest Script

To use the scripts with a unittest structure:

  1. Copy the content of scriptname_unittest.py .
  2. Paste the content into a new Python file (e.g., my_dropdown_unittest_script.py).
  3. Save the file and run.

You can customize the scripts as needed for your own testing scenarios. Additionally, ensure you have the required dependencies installed as mentioned in the Requirements section.

Feel free to explore the scripts in the repository and adapt them to suit your automation needs.

Description:

Normal Scripts : open the target page, locate the element or elements and interact with it so the user can see the action and the result.

Unittest Scripts : open the target page, locate the element or elements and interact with it so the user can see the action and the result. This approach focuses on creating test classes that can be reused or grouped with a test runner and method passing approach.

Contributing:

Contributions are welcome! Feel free to contribute to this Selenium Automation project.

If you have suggestions, ideas, or improvements, please don't hesitate.

Thank you for considering contributing!

License

MIT License

python_selenium_automation's People

Contributors

dbeniamin avatar

Stargazers

Olha Krotova avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.