Skip to main content

rabird.selenium

https://travis-ci.org/starofrainnight/rabird.selenium.svg?branch=master

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

Metadata

Release files for rabird.selenium 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rabird.selenium 0.8.1
File Size Uploaded
rabird.selenium-0.8.1.tar.gz 13.2 kB Details

Release files / rabird.selenium-0.8.1.tar.gz

Download URL rabird.selenium-0.8.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ba4b0e2beabe64b158b94477cd1d2453ef0a1acfa29609b440b8bbed631a0160
BLAKE2b-256 checksum
How to use checksums
498e0c949b0cebedee3d018d7577ac503cb7188976169eb0fb1a6bd931977bd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.12.5

1 release file

0.12.3

1 release file

0.12.2

1 release file

0.12.1

1 release file

0.11.2

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

This release

0.8.1 This release

1 release file

0.8.0

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.2

1 release file

0.4.2

1 release file

0.4.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page