Skip to content

catchpoint/WebPageTest.recorder-chrome-extension

Repository files navigation

WebPageTest Logo

WEBPAGETEST RECORDER EXTENSION

An extension for Chrome Recorder to export a recorder session as a WebPageTest Custom Script.

Download WPT RECORDER EXTENSION using Add to Chrome button.

How to use the recorder extension

Support for Replay UI (Beta)

Now you can directly replay your recording using Webpagetest (Chrome 112 onwards)

How to use the recorder replay UI


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).

Generate your script using extension

1. Open the Recorder panel

  • Open DevTools.
  • Click on More options --> More tools > Recorder.

Open Recorder

2. Start a new recording

  • Enter recording name.
  • Click on start recording button.
  • Start surfing on the internet to register your events.
  • End recording.

Start new recording

Refer to this link: https://developer.chrome.com/docs/devtools/recorder/ to learn more about Chrome Recorder

3. Export your script

After you are done with the recording

  • Click on export icon and select "Export as a Webpagetest custom script"

Export Script

4. Run Webpagetest test using script

Run 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.

Testing

  1. Clone the repo, run npm run build
  2. Visit chrome://extensions
  3. Enable "Developer mode" via toggle switch in upper right corner
  4. Click "Load unpacked" button in upper left corner
  5. Select the build directory produced by npm run build

Currently Supported Recorder Commands

  • navigate (maps to navigate)
  • setViewport (maps to setViewportSize)
  • click (maps to execAndWait)
  • change (maps to execAndWait)
  • keydown (maps to execAndWait)
  • keyup (maps to execAndWait)
  • waitForElement (maps to waitFor)
  • waitForExpression (maps to waitFor)
  • doubleClick (maps to execAndWait)
  • scroll (maps to execAndWait)

Resources

About

A Chrome extension for outputting user recording sessions as WebPageTest Custom Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published