Back to all steps

Grab attribute and send

Step fields
1 selector (text)
2 attribute name (text)
3 webhook endpoint (webhook)
In a scenario, fields are joined with |.
Grab an attribute value and send it to a webhook. Format: selector|attribute|endpoint.
Example: img.product|src.
The endpoint is picked from your webhooks (Profile → API tokens → Webhooks) - the address is no longer typed into the step. The server sends it: the request is signed, retried if the endpoint is down, and every delivery shows up in the webhook log. The step never fails the test.
Usage example

Get the value of an element’s attribute and send a POST to your URL.

Format: selector|attribute|url

Example: img.product|src|https://myapi.com/img-urls

POST request: the attribute value arrives in the html field.

Receiving example (PHP): $_POST["html"]