Skip to main content

a decent selenium wrapper

Project description

Autotet.Web

selenium based infrastructure for web automation tests

basic usage

from izSelenium import get_driver, Selector, By

# get izWebdriver
driver = get_driver('google') # now izSelenium saved a driver instance with an alias 'google'
gmail_driver = get_driver('gmail-driver') # this is another driver session: another window. 


# to seperate logic from html, we use an object called 'selector' to select elements on a web page. 
s_search_input = Selector(By.CSS_SELECTOR, f"form input[title='{SEARCH_TITLE}']")

# it's recomended to actually search for elements in a dedicated function
def search_input():
    return driver.find(s_search_input)

# izWebDriver has all webdriver functions and some more
keep_driver.get(KEEP_URL)

driver.get(r"http://www.google.com")
# izSelenium actions, like following 'send_keys', use restries and fix-actions - such as trying to set value with JS in case of failure
search_input().send_keys("i know how to automate") 

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

izSelenium-1.0.0.tar.gz (10.0 kB view details)

Uploaded Source

File details

Details for the file izSelenium-1.0.0.tar.gz.

File metadata

  • Download URL: izSelenium-1.0.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for izSelenium-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b63f7dfe793865648e84ca173da474827d5da7214067e195102c47b02223afb0
MD5 d53fcb9376366cf58c08f137b48a6a75
BLAKE2b-256 877671307473bb9af054b4e78ef3923faca7f7b5e95c935680c4c8617d3ad381

See more details on using hashes here.

Supported by

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