Socket
Socket
Sign inDemoInstall

recorder-to-wpt-script

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recorder-to-wpt-script

Script to convert Chrome user flow recordings to WPT Custom Scripts


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

WebPageTest Logo

EXPERIMENTAL: Recorder-To-WPT-Script

Script to convert Chrome user flow recordings to WPT Custom Scripts

Takes the path to a recorder JSON file and returns a WebPageTest Custom Script.

contributions welcome

Requirements

  • Node js

Usage

node index.js sample-recordings/simple-recorder.json

Screenshots of Script Paste this script into WPT custom script and see the magic happening

Steps to obtain Chrome user flow recordings

Refer to Recorder docs for more information on Chrome Recorder

#Open the Recorder panel

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

Screenshots of Script

#Export the JSON


NOTE

  • Only Chrome v101 and above i.e. Google Chrome Developer and Google Chrome Canary exports these json scripts.
  • Make sure that your recording plays back correctly in Chrome before feeding it into The Recorder Script (To obtain the expected outcome)

After you are done with the recording

  • Click on export icon and select "Export as a JSON file"

Screenshots of Script

Once that is done, feed the JSON into the recorder script to generate the WPT custom script

Currently Supported Recorder Commands

  • navigate (maps to navigate)
  • 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


NOTE

  • Only Chrome v101 and above i.e. Google Chrome Developer and Google Chrome Canary exports these json scripts.
  • There are some websites having issues with chrome recorder, this issue will be resolved with time as Google developers improve Chrome

FAQs

Package last updated on 07 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc