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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementWaitConfiggetOrCreateRef(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, getIncludeReflows, getIncludeTimers, setIncludeFileLoader, setIncludeNetworkOperations, setIncludeRedraws, setIncludeReflows, setIncludeTimersMethods 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 passedfalseas 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:
setTimeoutin classSystemWaitConfig- Parameters:
timeout- New timeout value. Default value is null- Returns:
ElementWaitConfiginstance, 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 passedfalseas 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:
getTimeoutin classSystemWaitConfig- Returns:
- Current timeout value. Default value is null
-
setWaitStyle
This attribute configures howwaitForElement()determines that the application is read to retrieve the element. SeeElementWaitStylefor options.If not explicitly set, the
defaultElementWaitStylewill be used.- Parameters:
waitStyle- New waitStyle value. Default value is null- Returns:
ElementWaitConfiginstance, for chaining setter calls
-
getWaitStyle
This attribute configures howwaitForElement()determines that the application is read to retrieve the element. SeeElementWaitStylefor options.If not explicitly set, the
defaultElementWaitStylewill be used.- Returns:
- Current waitStyle value. Default value is null
-