kense package¶
Submodules¶
kense.controls module¶
Set of Selenium helpers.
-
kense.controls.
selectdropdown
(browser, id_, value)[source]¶ Select option from kendoDropDownList.
Parameters: - browser (selenium.webdriver.remote.webdriver.WebDriver) – The Selenium web driver, the target URL must be loaded
- id_ (str) – The name of the ID of the <select> HTML tag, avoid suffixing it with #.
- value (str or kense.controls.ANY) – The option to select represented by the user-redeable text on it, use kense.controls.ANY to choose an option at random.
Returns: The text inside of the HTML tag.
Return type:
kense.exceptions module¶
Custom exceptions for Kense.
kense.wait module¶
Helpers to stop interaction until Kendo UI animations of widgets are done.
-
kense.wait.
waitanimation
(browser, id_, frequency=0.5, timeout=60)[source]¶ Wait until animation ends or timeout occurs.
Parameters: - browser (selenium.webdriver.remote.webdriver.WebDriver) – The Selenium web driver containing the HTML element doing the animation.
- id_ (str) – The name of the ID of the HTML tag, avoid suffixing it with #.
- frequency (float) – Time to sleep before checking if the animation is still running.
- timeout (int) – Wait time, if exceeded the function will return regardless of the HTML tag animation state.
Returns: Time waited, in seconds.
Return type: