Skip to content

Commit 8bde26e

Browse files
authored
Merge pull request #58 from pmeenan/wpt-url
Added $WPT_URL to the custom metrics docs
2 parents c91bf3c + c891dea commit 8bde26e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/custom-metrics/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Usually custom metrics only have access to the DOM but WebPageTest supports a sc
8989
* **$WPT_REQUESTS** - All request data except for bodies (significantly smaller)
9090
* **$WPT_BODIES** - All request data including bodies in the "response_body" entry
9191
* **$WPT_ACCESSIBILITY_TREE** - Array of the nodes of the [Chromium Accessibility tree](https://chromedevtools.github.io/devtools-protocol/tot/Accessibility/#method-getFullAXTree) (with the DOM node info recorded in node_info for each node in the array)
92+
* **$WPT_URL** - String for the URL that WebPageTest last navigated to directly as part of the test
9293

9394
Non-Chrome browsers (or in the case of an error collecting the requests) the replacement will replace null instead of an array (so it can be checked explicitly and differently from an empty array). That should make it possible to use the same script across all browsers.
9495

0 commit comments

Comments
 (0)