Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sophyia7/python-asserts

Demonstration of Python Asserts using Selenium
https://github.com/sophyia7/python-asserts

asserts lambatest python3 selenium selenium-python unittest

Last synced: 9 days ago
JSON representation

Demonstration of Python Asserts using Selenium

Awesome Lists containing this project

README

        

# Python Asserts with Selenium

This repository contains use cases for using Python asserts with Selenium for automated testing:
- Unittesting using Selenium
- Debugging using Selenium
- Data integrity testing using Selenium
- Input validation using Selenium

## Prerequisites

- Python 3.8 and above
- Should have an account on [LambdaTest](https://www.lambdatest.com)
- unittest module

## Setup

1. Create a virtual environment on your terminal

```python
virtualenv venv
```
2. Activate your virtual environment
```bash
source venv/bin/activate
```

3. Install dependencies
```bash
pip install -r requirements.txt
```

4. Add your username and access key to an .env file. Head over to [LambadaTest Dashboard](https://accounts.lambdatest.com/security) to get it.

5. To run the tests, simply execute the script with Python:

```bash
python nameoffile.py
```

## Have a feedback or need an Assist?

Feel free to fork the repo and contribute to make it better! Email to [[email protected]]([email protected]) for any queries or ping me on the following social media sites:

- LinkedIn: [Sophia Iroegbu](https://www.linkedin.com/m/in/sophia-iroegbu)
- Twitter: [sophiairoegbu_](https://twitter.com/sophiairoegbu_)