---
schema_version: "1"
id: 4c9102acbeae69a6d258cc2ab8fd1256bf65f75ee27dc72886259442f70a4497
title: Get Web Element Text
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/6.6/toolbox-web-automation-get-web-element-text.md
canonical_url: https://docs.mulesoft.com/rpa-builder/6.6/toolbox-web-automation-get-web-element-text
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 05493949610ba43efaa6ddc886f9f46561985a416e4f350d42a0a05b1640a1c8
description: MuleSoft Documentation Site
release: "6.6"
latest: false
---
---
product: RPA Builder
version: 6.6
---

# Get Web Element Text

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

The _Get Element Text_ action step reads the _innerText_ of an element and returns it as the
**Element Text** outbound variable, which makes it available for use in subsequent Action Steps
through Pin Variables.

As an example, you can use this action step to copy an email address or other text from a web page
and use it in another application.

## Properties

See [Common Properties](https://docs.mulesoft.com/rpa-builder/6.6/toolbox-web-automation-common-properties-web-automation).

## Inbound Variables

- **Element XPath**

- **Window Title**

## Outbound Variables

- **Element Text** (string, default: blank)

  The _innerText_ of the selected element. If the element has no _innerText_, this action step
  returns a blank string.

## Wizard

To extract the text from a web element:

1.  Click **Open Browser Wizard**.

2.  Navigate to the site that contains the text element to extract.

3.  Position the mouse over the text element.

4.  When a blue border shows to frame the element, press `F2`.

    The properties of the selected element show in the side bar. In addition to the mandatory XPath,
    you can select other attributes that help define the correct element.

5.  Click **Accept Selection** (![The Accept Selection icon.](/mulesoft/current/en-us/rpa-builder/6.6/_images/check-icon.png)) at the
    beginning of the sidebar on the browser wizard.

## Example

In this example, the Get Web Element Text action step captures an email address from a MuleSoft
Accelerators documentation article:

![The Browser Wizard showing a blue frame around the selected email address.](/mulesoft/current/en-us/rpa-builder/6.6/_images/get-web-element-text-example.png)

Then, in a subsequent Send Mail action step, the email address is entered as the **To** address
through a Pin variable:

![The Send Mail Wizard using a Pin variable to configure the email address.](/mulesoft/current/en-us/rpa-builder/6.6/_images/get-web-element-text-use-variable.png)
