written in
The project is created to outline most popular Selenium WebDriver commands and their usage.
Application Under Test is LiteCart E-commerce Platform
- locating elements
- navigation and interaction with elements
- working with alerts, frames, WebDriver window handle
- waits
- browser capabilities
- most common webDriver Exceptions
- PageObjects
Installation. Running tests locally requires you to have browser drivers installed on your machine. For more details, check out Selenuim and Python: drivers and installation.
For test execution you need to have AUT installed locally, it can be downloaded here: LiteCart E-commerce Platform. If you do not have local server, you can use a free solution from MAMP.
To run the tests - run any *test.py file. Each file contains full steps for each automated test scenario.
To check out PageObject implementation, run tests/productcart_test.py. It will initialize app class (application.py) that contains references to page classes.
def test_cart(app):
test_products = 2
products = app.get_product_links(test_products)Pages package contains sample classes and methods for web pages automation.