semvec/pypi-packages huggingface dataset:
cloudbeat-selenium 1.0.2
Selenium wrapper for CloudBeat Pytest Kit
License: Apache-2.0
Requires Python: >=3.6
Keywords: cloudbeat testing reporting python selenium

# CloudBeat Python Integrations

[<img src="https://cdn.prod.website-files.com/5e5fd6a35f35b720bfd3198a/5e9c149f9ba5991a3901422b_cloudbeat_logo_png.webp" height="85px" alt="CloudBeat logo"/>](https://cloudbeat.io/ "CloudBeat")

[![Release
Status](https://img.shields.io/pypi/v/cloudbeat-selenium)](https://pypi.python.org/pypi/cloudbeat-selenium)
[![Downloads](https://img.shields.io/pypi/dm/cloudbeat-selenium)](https://pypi.python.org/pypi/cloudbeat-selenium)

Learn more about CloudBeat at [https://cloudbeat.io/](https://cloudbeat.io/)

~ 🧾 [Documentation](https://docs.cloudbeat.io/python-pytest) – official documentation for CloudBeat <br>
~ 🙋🏻 [Contact and Support](https://www.cloudbeat.io/contact) – contact us and we'd love to help <br>
~ 📣 [Blog](https://www.cloudbeat.io/blog) – stay updated with our latest news <br>
~ 💻 [Demo](https://calendly.com/ndimer/cloudbeat-demo) – request a demo <br>

---------

# Quick start

### Make sure your requirements.txt includes:
```sh
cloudbeat-pytest
cloudbeat-selenium
```

## Standard Installation
```sh
cd pytest-selenium
python -m venv env
env\Scripts\activate
pip install -r requirements.txt
```

## Installation using UV
```sh
uv venv
uv pip install -r requirements.txt
```

## Set up CloudBeat reporter in confitest.py
```python
import uuid
import pytest
from selenium import webdriver
from cloudbeat_common.models import CbConfig
from cloudbeat_common.reporter import CbTestReporter
from cloudbeat_selenium.wrapper import CbSeleniumWrapper


@pytest.fixture(scope="module")
def cb_config():
    """Prepare configuration class for further CB reporter initialization."""
    config = CbConfig()
    config.run_id = str(uuid.uuid4())
    config.instance_id = str(uuid.uuid4())
    config.project_id = str(uuid.uuid4())
    config.capabilities = {"browserName": "chrome"}
    return config


@pytest.fixture(scope="module")
def cb_reporter(cb_config):
    reporter = CbTestReporter(cb_config)
    return reporter


@pytest.fixture()
def setup(cb_reporter):
    driver = webdriver.Chrome()
    wrapper = CbSeleniumWrapper(cb_reporter)
    wrapped_driver = wrapper.wrap(driver)
    yield wrapped_driver
    driver.quit()

```

### Set python src path if necessary
```sh
set PYTHONPATH=src
```

## Run your tests

### Standard
```sh
cd pytest-selenium
env\Scripts\activate
```

### All tests
```sh
pytest 
```

### Parallel tests
```sh
pytest -n 4
```

### Single test
```sh
pytest -v -s Tests/test_login.py 
```

### Using UV
```sh
uv run pytest # run all tests
uv run pytest -n 4 # run parallel tests
uv run pytest -v -s Tests/test_login.py # run a single test
```
cloudbeat-pytest 1.0.2
CloudBeat Pytest Kit
License: Apache-2.0
Requires Python: >=3.6
Keywords: cloudbeat testing reporting python pytest

# CloudBeat Python Integrations

[<img src="https://cdn.prod.website-files.com/5e5fd6a35f35b720bfd3198a/5e9c149f9ba5991a3901422b_cloudbeat_logo_png.webp" height="85px" alt="CloudBeat logo"/>](https://cloudbeat.io/ "CloudBeat")

[![Release
Status](https://img.shields.io/pypi/v/cloudbeat-pytest)](https://pypi.python.org/pypi/cloudbeat-pytest)
[![Downloads](https://img.shields.io/pypi/dm/cloudbeat-pytest)](https://pypi.python.org/pypi/cloudbeat-pytest)

Learn more about CloudBeat at [https://cloudbeat.io/](https://cloudbeat.io/)

~ 🧾 [Documentation](https://docs.cloudbeat.io/python-pytest) – official documentation for CloudBeat <br>
~ 🙋🏻 [Contact and Support](https://www.cloudbeat.io/contact) – contact us and we'd love to help <br>
~ 📣 [Blog](https://www.cloudbeat.io/blog) – stay updated with our latest news <br>
~ 💻 [Demo](https://calendly.com/ndimer/cloudbeat-demo) – request a demo <br>

---------

# Quick start

### Make sure your requirements.txt includes:
```sh
cloudbeat-pytest
cloudbeat-selenium
```

## Standard Installation
```sh
cd pytest-selenium
python -m venv env
env\Scripts\activate
pip install -r requirements.txt
```

## Installation using UV
```sh
uv venv
uv pip install -r requirements.txt
```

## Set up CloudBeat reporter in confitest.py
```python
import uuid
import pytest
from selenium import webdriver
from cloudbeat_common.models import CbConfig
from cloudbeat_common.reporter import CbTestReporter
from cloudbeat_selenium.wrapper import CbSeleniumWrapper


@pytest.fixture(scope="module")
def cb_config():
    """Prepare configuration class for further CB reporter initialization."""
    config = CbConfig()
    config.run_id = str(uuid.uuid4())
    config.instance_id = str(uuid.uuid4())
    config.project_id = str(uuid.uuid4())
    config.capabilities = {"browserName": "chrome"}
    return config


@pytest.fixture(scope="module")
def cb_reporter(cb_config):
    reporter = CbTestReporter(cb_config)
    return reporter


@pytest.fixture()
def setup(cb_reporter):
    driver = webdriver.Chrome()
    wrapper = CbSeleniumWrapper(cb_reporter)
    wrapped_driver = wrapper.wrap(driver)
    yield wrapped_driver
    driver.quit()

```

### Set python src path if necessary
```sh
set PYTHONPATH=src
```

## Run your tests

### Standard
```sh
cd pytest-selenium
env\Scripts\activate
```

### All tests
```sh
pytest 
```

### Parallel tests
```sh
pytest -n 4
```

### Single test
```sh
pytest -v -s Tests/test_login.py 
```

### Using UV
```sh
uv run pytest # run all tests
uv run pytest -n 4 # run parallel tests
uv run pytest -v -s Tests/test_login.py # run a single test
```
cloudbeat-common 1.0.3
Contains the common types and API client for CloudBeat
License: Apache-2.0
Requires Python: >=3.6
Keywords: cloudbeat testing reporting python

# CloudBeat Python Integrations

[<img src="https://cdn.prod.website-files.com/5e5fd6a35f35b720bfd3198a/5e9c149f9ba5991a3901422b_cloudbeat_logo_png.webp" height="85px" alt="CloudBeat logo"/>](https://cloudbeat.io/ "CloudBeat")

[![Release
Status](https://img.shields.io/pypi/v/cloudbeat-common)](https://pypi.python.org/pypi/cloudbeat-common)
[![Downloads](https://img.shields.io/pypi/dm/cloudbeat-common)](https://pypi.python.org/pypi/cloudbeat-common)

Learn more about CloudBeat at [https://cloudbeat.io/](https://cloudbeat.io/)

~ 🧾 [Documentation](https://docs.cloudbeat.io/python-pytest) – official documentation for CloudBeat <br>
~ 🙋🏻 [Contact and Support](https://www.cloudbeat.io/contact) – contact us and we'd love to help <br>
~ 📣 [Blog](https://www.cloudbeat.io/blog) – stay updated with our latest news <br>
~ 💻 [Demo](https://calendly.com/ndimer/cloudbeat-demo) – request a demo <br>

---------

# Quick start

### Make sure your requirements.txt includes:
```sh
cloudbeat-pytest
cloudbeat-selenium
```

## Standard Installation
```sh
cd pytest-selenium
python -m venv env
env\Scripts\activate
pip install -r requirements.txt
```

## Installation using UV
```sh
uv venv
uv pip install -r requirements.txt
```

## Set up CloudBeat reporter in confitest.py
```python
import uuid
import pytest
from selenium import webdriver
from cloudbeat_common.models import CbConfig
from cloudbeat_common.reporter import CbTestReporter
from cloudbeat_selenium.wrapper import CbSeleniumWrapper


@pytest.fixture(scope="module")
def cb_config():
    """Prepare configuration class for further CB reporter initialization."""
    config = CbConfig()
    config.run_id = str(uuid.uuid4())
    config.instance_id = str(uuid.uuid4())
    config.project_id = str(uuid.uuid4())
    config.capabilities = {"browserName": "chrome"}
    return config


@pytest.fixture(scope="module")
def cb_reporter(cb_config):
    reporter = CbTestReporter(cb_config)
    return reporter


@pytest.fixture()
def setup(cb_reporter):
    driver = webdriver.Chrome()
    wrapper = CbSeleniumWrapper(cb_reporter)
    wrapped_driver = wrapper.wrap(driver)
    yield wrapped_driver
    driver.quit()

```

### Set python src path if necessary
```sh
set PYTHONPATH=src
```

## Run your tests

### Standard
```sh
cd pytest-selenium
env\Scripts\activate
```

### All tests
```sh
pytest 
```

### Parallel tests
```sh
pytest -n 4
```

### Single test
```sh
pytest -v -s Tests/test_login.py 
```

### Using UV
```sh
uv run pytest # run all tests
uv run pytest -n 4 # run parallel tests
uv run pytest -v -s Tests/test_login.py # run a single test
```