Wait While Web Element Disappears Step
The Wait While Web Element Disappears step waits until a specified web element is no longer visible or available on the page. Use this step when you need to handle loading indicators, transitions, or dynamic content changes before continuing the automation process.
Wait While Web Element Disappears Step
Step 1: Add the Wait While Web Element Disappears Step
- Open your process in the Robotiq.ai editor.
- Drag the Wait While Web Element Disappears step into your workflow.
Step 2: Tell it What to Wait
- Pick a Selector Type from the dropdown menu. This tells Robotiq.ai how to find the web element.
- Type in the Selector Value. This is the specific ID for the element, based on the type you picked.
Important: You can find these selector values by looking at the elements in your web browser's developer tools.
Step 2: Tell it how long to Wait
- Set the Wait for Element disappears until timeout [ms]. This is how long (in milliseconds) the step will wait for the element to disappear. If the element is still present once the timeout is reached, the step throws an error.
Parameters Explained
Step Name (Optional)
- A custom name for the step.
- Example:
wait until element disappears - Use this to make your steps easy to understand.
Selector Type (Required)
- How Robotiq.ai finds the web element.
- Options:
Class Name,CSS Selector,Name,Id,Link Text,Partial Link Text,Tag Name,XPath - Pick the type that best identifies what you want to click.
Selector Value (Required)
- The specific value for the selector type you chose.
- Example: If
Selector TypeisId,Selector Valuemight beloader. - You can use an existing variable name or type in a direct value.
IFrame Selector Type (Optional)
- Defines how the iframe containing the target web element is identified.
- Options:
Class Name,CSS Selector,Name,Id,Link Text,Partial Link Text,Tag Name,XPath - Select the option that best identifies the iframe you want to interact with.
IFrame Selector Value (Optional)
- Specifies the value used to locate the iframe based on the selected IFrame Selector Type.
- Example: If IFrame Selector Type is
Id, the IFrame Selector Value could bepaymentIframe. - Use this when the element you want to interact with is located inside an iframe.
Driver Reference (Required)
- The variable that holds the web browser.
- Example:
myBrowserDriver - This links the click to a specific open browser.
Wait for Element disappears until timeout [ms] (Required)
- How long (in milliseconds) the step will wait for the element to disappear
- Example:
5000(waits for 5 seconds) - The maximum time (in milliseconds) the step will wait for the element to disappear before throwing an error. Set this value based on how long the page typically takes to complete the action that causes the element to disappear
Addditional Selectors (Optional)
- List of selectors, allowing you to define multiple selectors for the same step
- If the primary selector fails and additional selectors are defined, the step will automatically try the additional selectors in order.
- You can add, remove, and reorder selectors at any time.
- Any selector can be promoted to the primary selector, which will swap its position with the current primary selector.
- Each selector is evaluated for the duration of the timeout defined on the step before moving on to the next one.
- If you want to promote a selector to be the primary selector, first provide all required details (selector type and value), then click the swap icon next to selector type.
Related Articles
- Record process - Find out how to record your browser actions to create steps automatically.
- Browser Group - Find out how to use the Browser Group.
Need Help?
Can't find what you're looking for? Join the Robotiq Community to get help from other users and the Robotiq team.