Back to all steps
Grab text and send
Step fields
1
selector
(text)
2
webhook endpoint
(webhook)
In a scenario, fields are joined with
|.Grab text from an element and send it to a webhook. Format: selector|endpoint.
Example: .product-price - sends the price from .product-price.
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.
Example: .product-price - sends the price from .product-price.
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
Parse the text of an element and send a POST to your URL.
Format: selector|url
Example: .product-price|https://myapi.com/save - sends the text from .product-price.
POST request: the data arrives in the body field html.
Receiving example (PHP): $_POST["html"] · (Node/Express): req.body.html