rabird.selenium
An extension library for selenium.
This library is an extension library build on top of selenium.
It provided a bunch features that need in production enviroment but selenium have not provide yet or won’t provided by design even in future:
Added force_xxx() series functions to invoke the element directly even the element be covered by other elements. Just as force_click(), force_focus(), etc…
Added force_get() method to webdriver, it will stop the page loading after page loading timeout exception happen, so that the next script could just run without break by that exception.
Added ability to set element’s attribute
Provided xpath_find(), xpath_find_all(), etc. For simply invoke xpath for recursively find elements. it would iterate each frame and each window to find your elements and do the actions without switch frame manually, that could reduce a great lot jobs.
Provided some advance UI class to wrap for some third-parties editors ( Just like TinyMCE )
License: Apache-2.0
Usage
Simple xpath_find_all() sample:
import time
import rabird.selenium
rabird.selenium.monkey_patch()
from rabird.selenium import webdriver
driver = webdriver.Chrome()
webdriver.set_recommend_preferences(driver)
driver.force_get("http://www.bing.com")
elements = driver.xpath_find_all("//*[@id='sb_form_q']")
print(elements)
time.sleep(10)
Credits
This package was created with Cookiecutter and the PyPackageTemplate project template.
History
0.12.0 (2018-07-16)
Dropped python 2.x supports
Changed modules organization, this break backward compatibility
Support better test on travis-ci and appveyor
0.11.0 (2018-02-8)
Added dockerized webdriver support
0.9.0 (2018-01-02)
Make screenshot related functions works on all webdriver
0.7.0 (2017-06-22)
Fixed script freeze during long run
0.4.1 (2015-08-18)
Initial release
Metadata
Release files for rabird.selenium 0.12.5
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 | |
|---|---|---|---|---|
| rabird.selenium-0.12.5.zip | 43.2 kB | Without provenance | Details |
Release files / rabird.selenium-0.12.5.zip
| Download URL | rabird.selenium-0.12.5.zip |
|---|---|
| Size | 43.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9aa33397d98f6e50d84f969b12bbdf1f3f058f04559d60a290c10729b681a87
|
|
BLAKE2b-256 checksum How to use checksums |
e647cbca54c007b097bf44ee4a47b2f1ed13c897a6f9a177f3ae49b73a2df489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for rabird.selenium 0.12.5
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.