Skip to content

Wait for web element

Description

Waits for the targeted web element.

Input Ports

Name dataType sourceType required description
Element selector text link-manual true The element that should be waited for until it reached a specific state.
iFrame selector text link-manual false If the element is inside of an Iframe, it is mandatory to specify the iframe selector, otherwise the element won’t be found.
iFrame type text manual-only false Option to add more iframes if the targeted element exists in a nested iframe
Wait until text 'manual-only true The command can wait for the element to be loaded, visible or hidden.
Timeout number link-manual true When the element is not in the chosen state after x seconds, the program will throw a timeout error. Timeout works in milliseconds, 6000 = 6 seconds.

Scenarios

  • The user wants to wait until a element in the page are visible
  • The user wants to wait until a element in the page are loaded
  • The user wants to wait until a element in the page are hidden
  • The user wants to wait until a element inside a iFrame are visible
  • The user wants to wait until a element inside a iFrame are loaded
  • The user wants to wait until a element inside a iFrame are hidden

Use case

It is required to make use of the Launch web browser command.

Command

Inputs
  • Element selector: body > h1
  • iFrame selector: #iframeResult
  • iFrame type: single
  • Wait until: loaded
  • Timeout: 6000
Experienced tips
  • When the Element selector does not exist, the command will timeout
  • When the iFrame selector does not exist, the command will timeout
  • When the command wait until the element is hidden and it never goes hidden, the command will timeout
Search Tags

wait until website loaded await the process element visible element loaded element hidden