Metadata-Version: 2.1
Name: helenium
Version: 0.1.4
Summary: Simple Selenium Load Helper Package
License: MIT License
        
        Copyright (c) 2022 INDO YOON
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project-URL: Homepage, https://github.com/Indosaram/helenium.git
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# helenium

## What is it?

It is very tedious to download chromedriver whenever your chrome browser get updated, or if you want to setup new environment. This package handles downloading chormedriver automatically. In addition, it also gives you some handy selenium wrapper class.

## Installation

Use pip to install this package. It is not yet released in Pypi, but it is planned to do so when the version reached 1.0.0!

```bash
pip install helenium
```

## How to use it?

You can import `SeleniumLoader` class if you just want to use chromedriver feature. And instantiating this will trigger setup chromdriver.

```python
from helenium import SeleniumLoader


SeleniumLoader()
```

If you want to use wrapper class,

```python
import time

from helenium.base import SeleniumBase

selenium_base = SeleniumBase()
selenium_base.setup_driver() # Same as SeleniumLoader())

selenium_base.driver.get('https://google.com')
selenium_base.click_and_send_key(
    '/html/body/div[1]/div[3]/form/div[1]/div[1]/div[1]/div/div[2]/input',
    'Python\n',
)
time.sleep(1)

assert selenium_base.driver.current_url.startswith(
    'https://www.google.com/search?q=Python'
)

```
