PageElementBase provides basic functionalities for all PageElements.
the raw XPath selector of the PageElementBase
_$
provides access to the PageNode retrieval functions of PageElementBase's PageNodeStore and prefixes the
selectors of all PageNodes retrieved via _$
with the selector of PageElementBase.
the default interval used by PageElement for all of its functions that operate with intervals
(eg. wait
and eventually
)
Stores the last differences of PageNode's check state functions.
Intended for framework-internal usage only.
the XPath selector of PageNode
an instance of PageNodeStore which can be used to retrieve/create PageNodes
the default timeout used by PageElement for all of its functions that operate with timeouts
(eg. wait
and eventually
)
Defines the kind of wait condition performed when initialWait
is invoked.
The initial wait condition is performed every time before an interaction with the tested application takes place via a PageElement's action (eg. click).
$
provides access to the PageNode retrieval functions of PageElementBase's PageNodeStore and prefixes the
selectors of all PageNodes retrieved via $
with the selector of PageElementBase.
Returns true if actual
has any value.
the actual value which is supposed to have any value
Compares the values of actual
and expected
and returns true if actual
contains expected
.
the actual value to be compared
the expected value to be compared
Compares the values of actual
and expected
and returns true if they are equal.
the actual value to be compared
the expected value to be compared
Provides custom error handling of 'could not be located' and 'WaitUntilTimeoutError' errors for functions that check if a condition returns true within a specific timeout.
the function which is supposed to return true within a specific timeout
Executes func and trows any errors that occur during its execution.
If an error occurs because an element could not be located on the page, throws a custom 'could not be located' error message.
the function to be executed
the result value of the executed function
This function is used to write a value of an arbitrary type into error messages and log outputs.
the value to convert to a string
Provides custom error handling of 'could not be located' and 'WaitUntilTimeoutError' errors for functions that wait for a condition to become true within a specific timeout and throw an error if the condition does not become true.
the function which is supposed to return true within a specific timeout and throws an error if the condition does not become true
an errorMessage that describes the condition which did not become true within a specific timeout
the timeout used to wait for the result of the passed func to return true
this (an instance of PageNode)
This function executes a waitFunc until it returns true or a specific timeout is reached. If the return value of waitFunc does not become true within the timeout, this function throws a 'WaitUntilTimeoutError'.
__waitUntil also provides custom error handling for 'could not be located' errors.
the function which is supposed to return true within a specific timeout
a function that returns an errorMessage which describes the condition that did not become true within a specific timeout
the timeout used to wait for the result of the waitFunc to return true
the interval used to check for the result of the waitFunc to return true
this (an instance of PageNode)
This function implements custom error handling for 'could not be located' and 'WaitUntilTimeoutError' errors.
an arbitrary type of error
used to describe the failed condition check which caused a WaitUntilTimeoutError
the timeout used to wait for an element to be located or for a wait condition to return true
Returns the default interval that a PageElement uses if no other explicit interval is passed to one of its functions which operates with intervals (eg. wait, eventually)
Returns the XPath selector of PageElementBase.
Returns the default timeout that a PageElement uses if no other explicit timeout is passed to one of its functions which operates with timeouts (eg. wait, eventually)
Generated using TypeDoc
This class provides basic functionalities for all PageElements.
Store type of the PageNodeStore used by PageElementBase to retrieve PageNodes from the store