Selenium implementation with Python, POM & BDD!
This is purely a Selenium Framework, attempted to keep it as simple as possible and also by making use of some of best know practices of Test Automation.
- Linux / Mac / Windows
- Selenium
- Behave (BDD)
- Python3
- Tags
- Fixtures (Setup and Teardown)
- Features
- Scenarios
- Page Object Model
- Multi level Inheritance
- Static methods
- Action chains
- Writing wrapper functions for cumbersome selnium API's :(
- Added a custom locating method using text of the element (used xpath internally)
Pre-Requisites.
- Python3
- Webdriver's be downloaded and kept in system PATH
- Define the browser type in
common/variables.py
file (chrome / firefox) - Install the libraries mentioned in requirement.txt using the command
pip install -r requirements.txt
Use any of the below commands to run
- Go to the parent directory (ie. pysel)
- type
behave
and hit enter. // To run all the scenarios or - type
behave --tags='regression' -k
and hit enter // To run only tests which are using @regression tag