Web Element Conditions

Defines a condition with an element in a webpage

Web Element Conditions checks for a condition in the webpage. A Web Element Condition is used in If Element Condition Action and Wait Condition Action. Following are the different Web Element Conditions.

  • Is Present Returns true if the specified element is present in the current page.

  • Is Absent Returns true if the specified element is absent in the current page.

  • Is Visible Returns true if the specified element is present and visible in the current page.

  • Is Invisible Returns true if the specified element is present but hidden in the current page.

  • Has Text Returns true if the specified element has the specified text.

  • Has Attribute Returns true if the specified element has an attribute with specified name. If both attribute name and attribute value is provided, then it also checks if the attribute has the specified value. The attribute is specified through the parameter as attributename or attributename;attributevalue

  • Is Editable Returns true if the specified input element is editable (not readonly).

  • Is Not Editable Returns true if the specified input element is not editable.

  • Has Value Returns true if the specified input element has the specified value.

  • Is Checked Returns true if the specified checkbox / radio button element is in checked state.

  • Is Not Checked Returns true if the specified checkbox / radio button element is in unchecked state.

  • Selected Label Is Returns true if the label of the selected option in the specified select element equals the specified value.

  • Selected Label Is Not Returns true if the label of the selected option in the specified select element not equals the specified value.

  • Selected Value Is Returns true if the value of the selected option in the specified select element equals the specified value.

  • Selected Value Is Not Returns true if the value of the selected option in the specified select element not equals the specified value.

  • Has Alert Returns true if the current page has an alert with the specified text.

  • Has Confirmation Returns true if the current page has a confirmation with the specified text.

  • Has Prompt Returns true if the current page has a prompt with the specified text.

  • Has Title Returns true if the current page has the title with the specified text.

Last updated