Module selenium_library
Sub-modules
- selenium_library.base
Classes
Base(browser='chrome', headless=True, window_width=1920, window_height=1080)
: Base selenium
Example:
from selenium_library import Base
session = Base(headless=False)
session.open('https://www.google.de')
input = session.element('[name="q"]')
session.click(input)
session.send_keys(input, 'pipi')
Init session vars
Args:
browser (str): Browser name
headlesss (boolean): Hide browser
window_width (int): Window width
window_height (int): Window height
### Methods
`clear_keys(self, selector_or_element)`
: Clear keys from element
Args:
selector_or_element [str, WebElement]
`click(self, selector_or_element)`
: Try to click on an element
Args:
selector_or_element [str, WebElement]
`close(self)`
: Close the current session
`element(self, selector)`
: Try to find an element in dom
Returns [None]: Element or None
`elements(self, selector)`
: Try to find every element in dom
If there is no element it returns None
Args:
selector (str): DOM selector
Returns [None, list]: List of elements or None
`get_url(self)`
: Get the current url from the session
Returns (str): Current url
`launch_browser(self)`
: Launch browser and create a session
`open(self, url)`
: Open a new url in the session
`send_keys(self, selector_or_element, keys)`
: Send keys to an element
Args:
selector_or_element [str, WebElement]
keys (str): Keys to send
`wait(self, time=1, is_random=False, min=1, max=10)`
: Wait a specific time or random
Args:
time (int): Time to stop script
is_random (boolean): Waits a random time if true
min (int): Minium time to wait if random
max (int): Max time to wait if random
Metadata
Release files for selenium-library 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| selenium_library-0.0.3.tar.gz | 3.3 kB | Without provenance | Details for selenium_library-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| selenium_library-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for selenium_library-0.0.3-py3-none-any.whl |
Total release size: 7.3 kB
Release files / selenium_library-0.0.3.tar.gz
| Download URL | selenium_library-0.0.3.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84632cc2b5a912e2c08454e2fa22a200f5b87ae5cf60ab2dabc38300cee7bc27
|
|
BLAKE2b-256 checksum How to use checksums |
015fad125c9cc1ca8ac065eb06a6535cf61fae13ae9ee6d736bd1bb4aa0bce0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.1
|
Release files / selenium_library-0.0.3-py3-none-any.whl
| Download URL | selenium_library-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fac4a8e87daad2a723933ef393d4fa20c30408158eb0ebb055c8ba3567838c4
|
|
BLAKE2b-256 checksum How to use checksums |
baf8a22f43be0b208fa303184d67a55ed7e358a0405fb68726101dca7e3667c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.1
|
Security for selenium-library 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.