---
schema_version: "1"
id: 5ee5646a551096c897ef396edcea3d95692f0467b6a88c72c3c30bd8db8afdc9
title: Check Web Element
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-web-automation-check-web-element.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-web-automation-check-web-element
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c970067d62555250276692e3cc767b2e2e208898c9d8de8078345e8136cc1aa4
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Check Web Element

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Use this _Web Automation_ object to verify if a website or web application element was loaded
properly and how long this took. The _Check Element_ object can be used on any website element.

## Properties

**Expected Value** Define the value that the attribute must have to be valid

**Use regular expression** Use this function if you want to use a regular expression when checking
the value of a selected attribute. For an introduction to regular expressions, see Section
[Using Regular Expressions](https://docs.mulesoft.com/rpa-builder/latest/advanced-concepts-using-regular-expressions).

**Invert Check logic** If enabled, the _Check Element_ object waits until the defined web element
cannot be found any more, instead of waiting for it to appear.

## Inbound Variables

**Attribute to check**

**Check Value**

**InvertLogic**

**Regular expression**

**Element XPath**

**WindowTitle**

## Outbound Variables

The action step _Check Element_ possesses no outbound variables.

## Wizard

When you select the element you want to check using the _Browser Wizard_, the available attributes
for the element are listed in a drop-down menu. After you have chosen an attribute, an expected
value must be defined for that attribute. The current value will automatically be set as the
default.

You can also use regular expressions to match the expected value. For more information about regular
expressions see Section [Using Regular Expressions](https://docs.mulesoft.com/rpa-builder/latest/advanced-concepts-using-regular-expressions).

This check works as follows:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th></th><th><strong>Normal check logic</strong></th><th><strong>Invert check logic</strong></th></tr></thead><tbody><tr><td><p><strong><em>Attribute to check</em> is empty</strong></p></td><td><p>Only checks if there is an element at the given XPath for the given timeout period. Fails if no element can be found at the XPath for the whole timeout.</p></td><td><p>Checks if there is <strong>no</strong> element at the given XPath or waits until it disappears. Fails if an element is detected during the timeout period.</p></td></tr><tr><td><p><strong><em>Attribute to check</em> has an entry</strong></p></td><td><p>In addition to the check above, if the element is found, checks if the attribute to check is equal to the <em>Expected Value</em>. Fails if the attribute does not equal the expected value during the whole timeout period.</p></td><td><p>In addition to the check above, if the element is found, checks if the attribute to check is <strong>not</strong> equal to the <em>Expected Value</em>. Fails if the attribute equals the expected value at any point during the whole timeout. Note that this check will be instantly successful if the element cannot be found at all!</p></td></tr></tbody></table>
