GoLess
  • Basics
    • Recording Actions
    • Adding workflow manually
    • Tutorial: Scraping data
  • Workflow
    • Customization
    • Blocks
    • Global Data
    • Variables
    • Element Selector
    • Expressions
    • Workflow Table
    • Looping
    • Google Drive
  • Blocks
    • General
      • Note Block
      • Trigger Block
      • Execute Workflow Block
      • Delay Block
      • Export Data Block
      • HTTP Request Block
      • Blocks Group
      • Clipboard Block
      • Wait Connections Block
      • Notification Block
      • Workflow State
      • Parameter Prompt Block
    • Browser
      • Active Tab Block
      • New Tab Block
      • Switch Tab Block
      • New Window Block
      • Proxy Block
      • Go Back Block
      • Go Forward Block
      • Close Tab/Window Block
      • Take Screenshot Block
      • Browser Event Block
      • Handle Download Block
      • Handle Dialog Block
      • Reload Tab Block
      • Get Tab URL Block
      • Cookie Block
    • Web Interaction
      • Click Element Block
      • Get Text Block
      • Scroll Element Block
      • Link Block
      • Attribute Value Block
      • Forms Block
      • Javascript Code Block
      • Trigger Event Block
      • Switch Frame Block
      • Upload File Block
      • Hover Element Block
      • Save Assets Block
      • Press Key Block
      • Create Element Block
    • Control Flow
      • Repeat Task Block
      • Conditions Block
      • Element Exists Block
      • While Loop Block
      • Loop Data Block
      • Loop Elements Block
      • Loop Breakpoint
    • Data
      • Insert Data Block
      • Delete Data Block
      • Get Log Data Block
      • Slice Variable Block
      • Increase Variable Block
      • RegEx Variable Block
      • Data Mapping Block
      • Sort Data Block
    • Оnline Services
      • Google Sheets Block
    • Premium
      • ChatGPT Block
      • Captcha Block
  • REFERENCE
    • Logs
    • Schedule
    • Storage
    • Packages
    • Condition Builder
    • Workflow Common Errors
    • JavaScript Execution Context
Powered by GitBook
On this page
  1. Blocks
  2. Web Interaction

Attribute Value Block

PreviousLink BlockNextForms Block

Last updated 1 year ago

This block gets or sets the value of the specified attribute from the element.

Note

This block will not work without an active tab. Because of that, use the Active Tab block or New Tab block before using this block.

Below is a screenshot of the block settings.

The block has two modes of operation: CSS Selector or XPatch. In the first mode, the block must receive a css selector of the page element for its operation. In the second mode, the block receives the Xpath of the element. To get a selector, you can use the Element selector tool of the Goless extension.

  • Settings of the Selector options group:

  1. Multiple. Multiple element selection.

  2. Mark element. The item will not be selected if it was selected earlier.

  3. Wait for selector. Wait for the selector to be received. When you select this element, you can enter the timeout of the selector.

The Action setting has two modes:

  • Get attribute value. Allows you to get the attribute value.

  • Set attribute value. Allows you to record the value of an attribute.

Below is a screenshot of the Get attribute value mode:

Available Get attribute value mode settings:

  • Attribute name. Here you need to enter the attribute name. You can get the name using the Element selector tool of the Goless extension.

  • Assign to variable. The resulting attribute value is assigned to the variable you selected.

  • Insert to table. The resulting attribute value is inserted into the column of the table you selected.

  • Add extra row. An arbitrary row is added to the table in the column of the table you have selected.

Screenshot of the Set attribute value mode:

Set attribute value mode settings:

  • Attribute name. Here you need to enter the attribute name. You can get the name using the Element selector tool of the Goless extension.

  • Attribute value. Here you need to enter the attribute value to set its value.

Getting the attribute name using the Element selector tool of the Goless extension.

In the Goless extension, we will find a tool for obtaining the element selector of a site page element.

Let's select a page element and get a selector. In the screenshot below, the attribute of the element selector is highlighted on the Attributes tab. The arrow points to the attribute value, the attribute name is signed in the upper left corner.