Skip to main content

Else if web element is visible

Sophie avatar
Written by Sophie
Updated this week

Definition and Usage

This command checks if a specified element is visible on a web page when previous conditions are false, and executes subsequent actions if the condition is true. It serves as an alternative condition branch in a workflow, allowing for different execution paths based on element visibility status.


Parameter Values

Input parameters

Parameter Name

Description

Possible Values

Required

Options / Notes

Web page

Select a variable that contains the web page to work with

Yes

Must be a valid web page object from previous steps

Element

Select or capture an element to operate on

Yes

Can use the Capture button to select an element visually

Check if

To check if designated element is visible or not

Is visible, Is not visible

Yes

Check if clickable point is obstructed

When checked, verifies that the clickable point of the target element is not blocked by other elements, ensuring the click action can directly reach the target. When unchecked, only verifies that the element is visible.

No

Enabled by default

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables created in previous steps by inserting them into parameter fields where the variable icon appears. This allows for dynamic condition evaluation based on runtime values. Ensure that the variable types match the expected input types for each parameter.


Notes

  • This command is designed to be used after an "If" or another "Else if" condition in your workflow.

  • The condition will only be evaluated if all previous conditions in the same branch were false.

  • For reliable detection, ensure the web page is fully loaded before checking element visibility.

  • The "Check if clickable point is obstructed" option performs a more thorough check, verifying not only visibility but also accessibility for interaction.

  • If the element is dynamically loaded, you may need to add a wait command before this check.

Did this answer your question?