The purpose of this repository is to demonstrate Playwright Locators. Playwright is a browser automation & web testing framework which enables reliable end-to-end testing for modern web apps.
The required libraries necessary to run this code are
python==3.9.12
pytest==7.2.1
playwright==1.29.1
python-dotenv==0.21.1
pytest-playwright
Python installation remains standard and is out of scope
To install the recommended Playwright, Pytest & pytest-playwright use the single command below
pip install pytest-playwright
In order to run the tests on cloud grid you will need to create an account and obtain the username & access key from the LambdaTest Profile Page
Once obtained this needs to be updated in the sample.env
file
- Clone the repository
- Install the dependencies mentioned above
- Fire the command
pytest -v test_playwright_locators.py
- Clone the repository
- Install the dependencies mentioned above
- Fire the command
pytest -v test_playwright_locators.py::<name_of_individual_test>