An extension library for selenium
Project description
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 )
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)
Changes
0.7.0 (2017-06-22)
Fixed script freeze during long run
0.4.1 (2015-08-18)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rabird.selenium-0.11.0.tar.gz
.
File metadata
- Download URL: rabird.selenium-0.11.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ca89932f99139763d6b448139cf757438390194696d8ba9c31725b75ffa815 |
|
MD5 | bfc86f12f546c40874f83b329de7858f |
|
BLAKE2b-256 | 015b4796f56693926ef24c55f684407d9830568c54733b78e2925c3e3f97d679 |