cypress-chrome-recorder icon indicating copy to clipboard operation
cypress-chrome-recorder copied to clipboard

Error: Step.key is not a string

Open simsketch opened this issue 2 years ago • 1 comments

Trying to use on JSON file that was exported from Chrome Recorder.

Error: Step.key is not a string
    at parseString (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@puppeteer/replay/lib/main.js:182:11)
    at parseKeyDownStep (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@puppeteer/replay/lib/main.js:326:14)
    at parseStep (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@puppeteer/replay/lib/main.js:457:20)
    at parseSteps (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@puppeteer/replay/lib/main.js:486:21)
    at parse (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@puppeteer/replay/lib/main.js:528:16)
    at parseRecordingContent (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@cypress/chrome-recorder/dist/main.js:4:12)
    at cypressStringifyChromeRecording (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@cypress/chrome-recorder/dist/main.js:22:29)
    at file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@cypress/chrome-recorder/dist/cli/transforms.js:43:39
    at Array.map (<anonymous>)
    at runTransforms (file:///Users/username/.npm/_npx/46e9de2b1105cb4c/node_modules/@cypress/chrome-recorder/dist/cli/transforms.js:40:18)
username@username-username-M4C-MBP-MGYCXWHQDH fmg-nia-matgen-ui % 

simsketch avatar Feb 01 '23 05:02 simsketch

Getting the same error - similar stack track, except it is while parsing KeyUp step. I had only one keyUp step in the Json file and it has the structure in the recording Json file:

{
    "type": "keyUp",
    "target": "main"
}

It doesn't show any 'key'.

ksubramanian2 avatar Feb 17 '23 22:02 ksubramanian2