An extension for Chrome Recorder to export a recorder session as a WebPageTest Custom Script.
Download WPT RECORDER EXTENSION using Add to Chrome
button.
Now you can directly replay your recording using Webpagetest (Chrome 112 onwards)
NOTE
- This extension is only compatible with Chrome v104 and above.
- Before exporting the script, ensure your recording plays back correctly in Chrome (to obtain the expected result).
- Open DevTools.
- Click on More options --> More tools > Recorder.
- Enter recording name.
- Click on start recording button.
- Start surfing on the internet to register your events.
- End recording.
Refer to this link: https://developer.chrome.com/docs/devtools/recorder/ to learn more about Chrome Recorder
After you are done with the recording
- Click on export icon and select "Export as a Webpagetest custom script"
- Open https://www.webpagetest.org
- Scroll down to custom script section and paste your WPT script.
- Hit Start Test Button
Now you have successfully generated a Webpagetest Custom Script using WEBPAGETEST RECORDER EXTENSION and Run a Webpagetest Test. Play around with the extension and have fun.
- Clone the repo, run
npm run build
- Visit chrome://extensions
- Enable "Developer mode" via toggle switch in upper right corner
- Click "Load unpacked" button in upper left corner
- Select the
build
directory produced bynpm run build
navigate
(maps tonavigate
)setViewport
(maps tosetViewportSize
)click
(maps toexecAndWait
)change
(maps toexecAndWait
)keydown
(maps toexecAndWait
)keyup
(maps toexecAndWait
)waitForElement
(maps towaitFor
)waitForExpression
(maps towaitFor
)doubleClick
(maps toexecAndWait
)scroll
(maps toexecAndWait
)