Package com.smartgwt.client.util
Class ElementWaitConfig
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.util.SystemDoneConfig
com.smartgwt.client.util.SystemWaitConfig
com.smartgwt.client.util.ElementWaitConfig
- All Implemented Interfaces:
HasHandlers
Configuration object for
AutoTest.waitForElement()
-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementWaitConfig
getOrCreateRef
(JavaScriptObject jsObj) Timeout forAutoTest.waitForElement()
in ms.This attribute configures howwaitForElement()
determines that the application is read to retrieve the element.setTimeout
(Integer timeout) Timeout forAutoTest.waitForElement()
in ms.setWaitStyle
(ElementWaitStyle waitStyle) This attribute configures howwaitForElement()
determines that the application is read to retrieve the element.Methods inherited from class com.smartgwt.client.util.SystemWaitConfig
getIncludeFileLoader, getIncludeNetworkOperations, getIncludeRedraws, getIncludeTimers, setIncludeFileLoader, setIncludeNetworkOperations, setIncludeRedraws, setIncludeTimers
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
ElementWaitConfig
public ElementWaitConfig() -
ElementWaitConfig
-
-
Method Details
-
getOrCreateRef
-
setTimeout
Timeout forAutoTest.waitForElement()
in ms. If this is exceeded the callback will be fired with element set tonull
, and the callback will be passedfalse
as its"done"
parameter.Note that
AutoTest.getElement()
can return a valid element but this method can still timeout if the element is not clickable or the system is busy.If unset a default timeout of 30 seconds will be used.
- Overrides:
setTimeout
in classSystemWaitConfig
- Parameters:
timeout
- New timeout value. Default value is null- Returns:
ElementWaitConfig
instance, for chaining setter calls
-
getTimeout
Timeout forAutoTest.waitForElement()
in ms. If this is exceeded the callback will be fired with element set tonull
, and the callback will be passedfalse
as its"done"
parameter.Note that
AutoTest.getElement()
can return a valid element but this method can still timeout if the element is not clickable or the system is busy.If unset a default timeout of 30 seconds will be used.
- Overrides:
getTimeout
in classSystemWaitConfig
- Returns:
- Current timeout value. Default value is null
-
setWaitStyle
This attribute configures howwaitForElement()
determines that the application is read to retrieve the element. SeeElementWaitStyle
for options.If not explicitly set, the
defaultElementWaitStyle
will be used.- Parameters:
waitStyle
- New waitStyle value. Default value is null- Returns:
ElementWaitConfig
instance, for chaining setter calls
-
getWaitStyle
This attribute configures howwaitForElement()
determines that the application is read to retrieve the element. SeeElementWaitStyle
for options.If not explicitly set, the
defaultElementWaitStyle
will be used.- Returns:
- Current waitStyle value. Default value is null
-