Skip to content

Commit c891dea

Browse files
committed
Added $WPT_URL to the custom metrics docs
1 parent 78cf9c1 commit c891dea

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
@@ -85,6 +85,7 @@ Usually custom metrics only have access to the DOM but WebPageTest supports a sc
8585
* **$WPT_REQUESTS** - All request data except for bodies (significantly smaller)
8686
* **$WPT_BODIES** - All request data including bodies in the "response_body" entry
8787
* **$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)
88+
* **$WPT_URL** - String for the URL that WebPageTest last navigated to directly as part of the test
8889

8990
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.
9091

0 commit comments

Comments
 (0)