utils library

Functions

createPO<T>(PageLoaderElement source, POFactory<T> poFactory, { Finder finder }) → T
Generates PO of type T using source as context. If finder is provided, creates a new PO using context plus finder. [...]
exists(dynamic item) → bool
Collection of functions that can be used in PageObjects to do simple common functions on PageLoaderElements or PageObjects without requiring a passthrough for those properties. [...]
getInnerText(dynamic item) → String
Gets the innerText of a PageLoaderElement/PageObject.
hasClass(dynamic item, String className) → bool
Checks if a PageLoaderElement/PageObject contains given class.
isDisplayed(dynamic item) → bool
Checks if a PageLoaderElement/PageObject is displayed based on "display" style.
isFocused(dynamic item) → bool
Checks if PageLoaderElement/PageObject is focused.
isHidden(dynamic item) → bool
Checks if a PageLoaderElement/PageObject is hidden based on "visibility" style. [...]
isNotDisplayed(dynamic item) → bool
Checks if a PageLoaderElement/PageObject is not displayed based on "display" style.
isNotFocused(dynamic item) → bool
Checks if PageLoaderElement/PageObject is not focused.
isNotHidden(dynamic item) → bool
Checks if PageLoaderElement/PageObject is not hidden based on "visibility" style.
isNotVisible(dynamic item) → bool
Checks if a PageLoaderElement/PageObject is not visible.
isVisible(dynamic item) → bool
Checks if a PageLoaderElement/PageObject is visible. [...]
notExists(dynamic item) → bool
A matcher that checks if a PageLoaderElement/PageObject does not exist.
rootElementOf(dynamic item) PageLoaderElement
Grabs the root element of a PageObject. Same as getting a '@root' annotated getter within the PageObject. If a PageLoaderElement is passed, returns it back.

Typedefs

POFactory<T>(PageLoaderElement context) → T
Function for PageObject constructor. Typically in form: (c) => SomePO.create(c)

Exceptions / Errors

PageLoaderArgumentError