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

# 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/latest/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/latest/_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/latest/_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/latest/_images/get-web-element-text-use-variable.png)
