Easy Chrome
Description
This package is used as an extension to selenium chrome WebDriver. It contains shortcuts to control driver more easily.
Features
- Auto download chromedriver by webdriver_manager with custom cache.
- Shortcuts to control driver and element.
Examples
- init chrome driver.
from easy_chrome import Driver
driver = Driver.set_chrome(detach_mode=True)
- wait an element located by XPATH to be visible in DOM.
// bare usage
WebDriverWait(driver, wait_time).until(EC.visibility_of_element_located((By.XPATH, xpath))
// with easy-chrome
driver.wait_visible(xpath)
- get local storage.
// bare usage
driver.execute_script("return window.sessionStorage.getItem(arguments[0]);", key)
// with easy-chrome
driver.get_local_storage(key)
- wait username input field to be visible in DOM, clear the content and write username to it.
input_xpath = "//input[@id='username']
// bare usage
WebDriverWait(driver, wait_time).until(EC.visibility_of_element_located((By.XPATH, input_xpath)).clear()
sleep(0.2)
WebDriverWait(driver, wait_time).until(EC.visibility_of_element_located((By.XPATH, input_xpath)).sendkeys(username)
// with easy-chrome
driver.wait_visible(input_xpath).clear_and_type(user_name)
Source Code
The source code is currently hosted on GitHub at: https://github.com/wcuong/easy-chrome
Release
The package is currently hosted on Pypi at: https://pypi.org/project/easy-chrome/
ChangeLog
2.0.1 2023-11-04
- Init project
2.0.2 2023-11-06
- Change headless mode to --headless=new
- Ignore DownloadBubble Feature, which enforces an download popup in incognito mode.
2.0.3 2023-11-08
- add custom windows chrome detect method because sometimes webdriver_manager fails to detect.
Metadata
Release files for easy-chrome 2.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 |
|---|---|---|---|---|
| easy-chrome-2.0.3.tar.gz | 8.4 kB | Without provenance | Details for easy-chrome-2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easy_chrome-2.0.3-py3-none-any.whl | Python 3 | none | any | Details for easy_chrome-2.0.3-py3-none-any.whl |
Total release size: 17.2 kB
Release files / easy-chrome-2.0.3.tar.gz
| Download URL | easy-chrome-2.0.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ac6205f45f5838d306a7837fd89ac99aa3013230bfae6ec595e8b36cd8fa7f7
|
|
BLAKE2b-256 checksum How to use checksums |
2837c760c33316e993fe93e5fd7ab0f98e3fcc3dc02b93695037ef7737d55ce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / easy_chrome-2.0.3-py3-none-any.whl
| Download URL | easy_chrome-2.0.3-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14f85febdaa572074c8e17a9d98d11ef60bba9b308eb6752bcb02829427b241e
|
|
BLAKE2b-256 checksum How to use checksums |
6e5d2c1b0c8240ebd38669c4667ae81103b1a70f70eff4d09cb2b3782c320fea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for easy-chrome 2.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.