Inputs

☐ Prompt / Description (Required)

A clear and concise instruction describing what this step should do. This helps the AI debug and re-find the element if the webpage structure changes.

Good Example: "Retrieve the 'href' attribute from the first search result link."

Bad Example: "Find some attribute that looks useful and get it if possible."

Why it’s bad? Too vague, lacks specificity about what to retrieve.

☐ Element Selector (Required)

Define the target element using one of the following methods:

CSS Selector

Use standard CSS selectors to identify the element.

XPath

Use an XPath expression to precisely locate the element.

☐ Action Type (Required)

Get attribute value

Extracts the specified attribute from the selected element.

Set attribute value

Modifies the specified attribute with a new value.

☐ Attribute Name (Required)

The exact name of the attribute to be retrieved or modified (e.g., href, alt, class, data-id).

☐ Output Options (Optional)

Assign to variable

Store the retrieved attribute value for later use.

Insert to table

Save the extracted attribute value into a structured table.

Usage Example

Scenario 1: Retrieving a link's URL

✅ Good Prompt:

“Retrieve the ‘href’ attribute from the first search result link.”

✅ Good Element Selectors:

CSS Selector: a.result-link

XPath: //a[contains(@class, 'result-link')]

✅ Configuration:

  • Action Type: Get attribute value
  • Attribute Name: href
  • Output: Assign to variable link_url

Scenario 2: Setting a button's label

✅ Good Prompt:

“Set the ‘aria-label’ attribute of the ‘Submit’ button to ‘Send Application’.”

✅ Good Element Selectors:

CSS Selector: button.submit

XPath: //button[@class='submit']

✅ Configuration:

  • Action Type: Set attribute value
  • Attribute Name: aria-label
  • Value to Set: "Send Application"

Notes

  • The Prompt / Description is required to help AI debug and adjust the selector if needed.
  • Ensure the attribute name is spelled correctly to avoid errors.
  • When setting an attribute value, ensure that modifying it won’t break functionality on the webpage.