This repo accompanies the LambdaTest YouTube video series and includes all of the code examples seen in each video.
This series is all about using Pylenium + pytest to perform Cross Browser Testing with LambdaTest!
If you want to follow along with the exact setup that I'm using, then I recommend watching my YouTube video called:
Setup VS Code for Python with pyenv & poetry
I highly recommend watching the above video! It will guide you through setting up your machine and your IDE for Python Development!
Then clone this project and you're ready to follow the remaining steps!
- If using
poetry
, then install the dependencies which will also create a virtual environment automatically. (If you followed the recommended video, this step is already done.)
poetry install
Otherwise, create a virtual environment first and then install Pylenium in it:
pip install pyleniumio
-
Pylenium uses
pytest
as the Test Framework, but you need to setup your IDE to use pytest. (If you followed the recommended video, this step is already done.) -
There is a branch for each video in the series. Within each branch, there is a commit with different pieces as I progress through the video. This is helpful since you can follow the progression of the code in the video. You can pause the video, checkout the commit we're currently working on, and copy + paste or try things yourself!
I've included the links to each commit below for convenience :)
Video 1 - Introduction and Setup
- No code yet at this point
Video 2 - Write UI Tests
- Write the first test
- Write the second test
- Refactor logic to TodoPage and page fixture
- Write a new test and cleanup our existing tests
- Design decision: move .get('input') to our class methods?
- Write the final test
Video 3 - Run Tests in Parallel
Video 4 - Cross Browser Testing with LambdaTest