semvec/pypi-packages huggingface dataset:
xdriver 1.2.3
Expanded Selenium WebDriver
License: MIT
Requires Python: >=3.10

<div align="center">

# xDriver

![PyPI - Version](https://img.shields.io/pypi/v/xdriver?color=green&link=https%3A%2F%2Fpypi.org%2Fproject%2Fxdriver%2F)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xdriver?link=https%3A%2F%2Fpypi.org%2Fproject%2Fxdriver%2F)

Expanded Selenium WebDriver.
</div>

## Setup & Examples of Usage
 - Install the package using the `pip install xdriver` command.
 - Create a pytest function scope fixture that will start/close the webdriver before/after each test `conftest.py`
 - Create a test that will use the driver provided by the before-mentioned fixture `test_example.py`

Example _tests_ directory structure:
```
tests/
â”‚
â”œâ”€â”€ conftest.py
â””â”€â”€ test_example.py
```
_conftest.py_ file content:
```python
@pytest.fixture(scope='function')
def driver() -> Driver:
    """
    Starts the Driver before test and closes it afterward
    """
    driver = Driver(webdriver_type="chromedriver")
    yield driver
    driver.quit()
```
_test_example.py_ file content:
```python
from selenium.webdriver.common.by import By


def test_example(driver):
    """
    Tests if the example page has the h1 WebElement
    """
    driver.get("https://example.com/")
    assert driver.check_if_element_exists((By.CSS_SELECTOR, "h1")), "h1 element was not found!"
```

### Additional Information
All available methods can be found in the `webdriver.py` file. Some examples:
```
get_element()
get_clickable_element()
check_if_element_exists()
check_if_clickable_element_exists()
hover_over_element()
...
```
If you ever need to use the default selenium webdriver use `driver.driver`:
```python
from selenium.webdriver.common.by import By


def test_example_default_webdriver(driver):
    """
    Example of default Selenium WebDriver usage 
    Tests if h1 element is displayed
    """
    driver.get("https://example.com/")
    h1 = driver.driver.find_element(By.CSS_SELECTOR, "h1")
    assert h1.is_displayed(), "h1 element was not displayed!"
```
mdformat-shfmt 0.2.0
Mdformat plugin to format shell code blocks
License: MIT
Requires Python: >=3.9
Keywords: mdformat, markdown, commonmark, formatter, bash, shell

[![Build Status](https://github.com/hukkin/mdformat-shfmt/actions/workflows/tests.yaml/badge.svg?branch=master)](<https://github.com/hukkin/mdformat-shfmt/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush>)
[![PyPI version](<https://img.shields.io/pypi/v/mdformat-shfmt>)](<https://pypi.org/project/mdformat-shfmt>)

# mdformat-shfmt
> Mdformat plugin to format shell code blocks

## Description
mdformat-shfmt is an [mdformat](https://github.com/executablebooks/mdformat) plugin
that makes mdformat format shell code blocks embedded in Markdown with [shfmt](https://github.com/mvdan/sh).
The plugin invokes shfmt in a subprocess so having either shfmt, Docker or Podman installed is a requirement.

## Installing
1. Install either [shfmt](https://github.com/mvdan/sh#shfmt), [Docker](https://docs.docker.com/get-docker/) or [Podman](https://podman.io/docs/installation)
1. Install mdformat-shfmt
   ```bash
   pip install mdformat-shfmt
   ```

## Usage
```bash
mdformat YOUR_MARKDOWN_FILE.md
```

## Limitations
The Docker/Podman fallback is only tested on Linux.
If you experience issues with it on Windows or macOS, please install shfmt.