Skip to main content

Simple Selenium Load Helper Package

Project description

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!

pip install git+https://github.com/Indosaram/helenium.git

How to use it?

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

from helenium import SeleniumLoader


SeleniumLoader()

If you want to use wrapper class,

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'
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

helenium-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

helenium-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file helenium-0.1.0.tar.gz.

File metadata

  • Download URL: helenium-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for helenium-0.1.0.tar.gz
Algorithm Hash digest
SHA256 476d83892a140f12a1f2822566876e37be4472d1f4fec99f3b67daeaacadbd2e
MD5 442ca3ce86e94609f82a9396885530ca
BLAKE2b-256 f559638cd5882232cab463cd7a10b4dcc9f97c50761330336ebd76276d654e53

See more details on using hashes here.

File details

Details for the file helenium-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: helenium-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for helenium-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9853c7be75e1cd289daf91d41cb8b2056184f6e4de320c7e097786412b8cb240
MD5 bcb906667064a0b292cb9c288b7c1eaf
BLAKE2b-256 45d7582a3113491980538e7ed4e8f762e090a52d30bcfa888da0c7f5c466bc55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page