get attribute

This block is part of the browser group and was last modified in core v14.0.2.

get attribute v14.0.2

Grabs the attribute from the matching elements

In pins 3 + flow
  • flow
    flow
  • page required
    browserconnection
  • CSS selector required
    value

    Use CSS or element selector to find the elements you need the attribute of

  • attribute required
    value

    The attribute to request the contents of

    Default textContent

Out pins 4 + flow
  • flow
    flow
  • page
    browserconnection
  • count
    number

    Number of elements matching the selector

  • attributes
    array

    Contents of all matching attributes

  • error
    value

A typical wiring for get attribute: a function trigger starts the flow; load URL feeds the page pin; value feeds the element_selector pin; value feeds the element_attribute pin; the flow out pin feeds debug.

Studio canvas example for the get attribute block: typical wiring for get attribute.

Version history

Introduced in v14.0.2.


Back to browser Return to the main group to view all sub-groups Back to page elements Return to the group to view all blocks within this group