<button-wait>

The <button-wait> element will force the test script to wait for the specified button’s state to change either from enabled to disabled, or from disabled to enabled, depending on the element’s configuration. The script will wait until either the specified state change occurs or until the timeout value for the <script> or the <button-wait> element is reached. If the button‘s state does not changed before the timeout has elapsed a script error will be thrown.

Structure

Contains:
  • None
Contained By:
  • <script>
Attributes
Name Description Data Type Default Value Required
enabled This attribute specifies whether to wait for the button to be enabled or disabled. The value t is true and the element will wait until the button is enabled. The value f is false and the element will wait until the button is disabled. string t No
common button attributes These attributes when set for the <button-wait> element specify the button to be monitored for a state changed.      
common script attributes A set of related attributes common to most elements within the Agentry Test Script. N/A N/A N/A