Metadata-Version: 2.1
Name: pyasli
Version: 0.2.8
Summary: (Python) Yet Another Selenium Instruments
License: MIT
Author: Anton Kachurin
Author-email: katchuring@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: py (>=1.11.0,<2.0.0)
Requires-Dist: selenium (>=4.8,<5.0)
Requires-Dist: webdriver-manager (>=1.7,<2.0)
Requires-Dist: wrapt (>=1.11,<2.0)
Description-Content-Type: text/markdown

## Pyasli
[![codecov](https://codecov.io/gh/outcatcher/pyasli/branch/master/graph/badge.svg?token=SH2I5ZB221)](https://codecov.io/gh/outcatcher/pyasli)
![Tests](https://github.com/outcatcher/pyasli/actions/workflows/check.yaml/badge.svg)
![Release](https://github.com/outcatcher/pyasli/actions/workflows/release.yaml/badge.svg)
[![PyPI version](https://img.shields.io/pypi/v/pyasli.svg)](https://pypi.org/project/pyasli/)

### Simple selenium python wrapper

#### There are two ways to use browser:

##### Use default shared driver:

```python
from pyasli.browsers import browser

browser.base_url = "https://the-internet.herokuapp.com"
browser.open("/disappearing_elements")
element1 = browser.element("div.example p")
assert element1.get_actual() is element1.get_actual(), "Element is found 2 times"
```

##### Use exact driver (can be used as context manager):
```python
from pyasli.browsers import BrowserSession

with BrowserSession("chrome", base_url="https://the-internet.herokuapp.com") as browser:
    browser.open("/disappearing_elements")
    element1 = browser.element("div.example p")
    assert element1.get_actual() is element1.get_actual(), "Element is found 2 times"
```

In case `browser_instance` is used as context manager, all browser windows will be closed at
exiting context

----

##### There is no documentation currently. For usage please refer to tests


