Class ElementWaitConfig

All Implemented Interfaces:
HasHandlers

public class ElementWaitConfig extends SystemWaitConfig
Configuration object for AutoTest.waitForElement()
  • Constructor Details

    • ElementWaitConfig

      public ElementWaitConfig()
    • ElementWaitConfig

      public ElementWaitConfig(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static ElementWaitConfig getOrCreateRef(JavaScriptObject jsObj)
    • setTimeout

      public ElementWaitConfig setTimeout(Integer timeout)
      Timeout for AutoTest.waitForElement() in ms. If this is exceeded the callback will be fired with element set to null, and the callback will be passed false 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 class SystemWaitConfig
      Parameters:
      timeout - New timeout value. Default value is null
      Returns:
      ElementWaitConfig instance, for chaining setter calls
    • getTimeout

      public Integer getTimeout()
      Timeout for AutoTest.waitForElement() in ms. If this is exceeded the callback will be fired with element set to null, and the callback will be passed false 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 class SystemWaitConfig
      Returns:
      Current timeout value. Default value is null
    • setWaitStyle

      public ElementWaitConfig setWaitStyle(ElementWaitStyle waitStyle)
      This attribute configures how waitForElement() determines that the application is read to retrieve the element. See ElementWaitStyle 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

      public ElementWaitStyle getWaitStyle()
      This attribute configures how waitForElement() determines that the application is read to retrieve the element. See ElementWaitStyle for options.

      If not explicitly set, the defaultElementWaitStyle will be used.

      Returns:
      Current waitStyle value. Default value is null