Wait for Element to be Visible
Last updated
Was this helpful?
Last updated
Was this helpful?
The Wait for Element to be Visible action in the Avo Assure is found under the @Custom Element Name. It instructs the Avo Assure Client to wait until the element is visible on the web page. Before making the step fail, this time to wait should be set in configuration settings using the “Timeout” property and save the result (True/False) in the given output variable.
Note: Set the Timeout property in the configuration settings within the Avo Assure client.
Input: <ObjectType>;<VisibleText(optional)>;<Index>;<abs(optional)>
Note: The user needs to provide the type of object, its visible text of the element (if needed), its element index, and the abs (absolute value).
Output: <Dynamic Variable>(optional);<Dynamic Variable>(optional)
User is testing a login function, the “Wait for Element to be Visible” action is used to wait for continue button the script for a few seconds after the credentials are submitted. This allows the system sufficient time to load the dashboard completely.
button;;0
The Wait for Element to be Visible action needs to wait until the continue button is visible on the web page and store True in Output variable.
The result of the Wait for Element to be Visible action waited for no of seconds then the continue button is visible on the web page and stores in the {result} output variable as “True”, which can be utilized for display or other purposes.