Skip to main content

Start Capturing Web Requests

Command description

Capture network requests from a webpage. Use this command with Stop Capturing Web Requests, Get Web Request Data, and Navigate Webpage. Refreshing the webpage with Navigate Webpage causes its resources to be requested again so they can be captured.

Command Input Parameters

input parametersInput parameter typeDescription
Webpage ObjectWebPageListen for requests from this web page
Resource URLstrWhen the requested URL contains this value, the request data is collected. By default, all request data is collected.
Regex MatchboolWhether Resource URL is a regular expression; default: False
Resource TypeenumAll, XHR|Fetch, Document, Stylesheet, Image, Media, Font, Script, WebSocket, Other

Command Output Parameters

None

Type definition reference

  • Python Webpage Object Type Definitions

  • Start Capturing Web Requests > Resource URL: collect requests whose URL contains the specified text. Leave it empty to collect every request.

  • Start Capturing Web Requests > Resource Type: select the Chrome DevTools resource type to collect, such as XHR, Script, or Image.

  • After collecting the required data, run Stop Capturing Web Requests to prevent accumulated request data from consuming excessive browser resources.

  • Get Web Request Data > Resource URL: filter the captured requests by URL. Leave it empty to return all data captured by Start Capturing Web Requests.

    The returned request data has the following structure:

    [
    {
    "url": "",
    "type": "XHR",
    "status": 200,
    "headers": {},
    "body": "string",
    "base64Encoded": false,
    "requestId": ""
    }
    ]
tip

Install the Runavelo browser extension before using this command.

Example

Capture JSON returned by a web application

The sample application's /apps endpoint returns JSON, so parse the body string with json.loads.

{
"code": 0,
"data": [
{
"id": 8,
"type": 0,
"title": "Email Triage Assistant",
"status": 1,
"dateTime": "2025-06-28",
"desc": "Classify incoming support requests and prepare suggested responses",
"logo": "https://cdn.runavelo.com/examples/email-triage.png",
"link": "https://runavelo.com/examples/email-triage"
}
]
}

FAQ

See Web Automation FAQ