Skip to content

Instantly share code, notes, and snippets.

@levchenkod
Created July 18, 2025 21:49
Show Gist options
  • Save levchenkod/82c98042147c0de61c986ac3c60463a3 to your computer and use it in GitHub Desktop.
Save levchenkod/82c98042147c0de61c986ac3c60463a3 to your computer and use it in GitHub Desktop.
Create Social LA Campaign - Crome Recording
{
"title": "Create Social LA Campaign",
"steps": [
{
"type": "setViewport",
"width": 1447,
"height": 742,
"deviceScaleFactor": 1,
"isMobile": false,
"hasTouch": false,
"isLandscape": false
},
{
"type": "navigate",
"url": "http://catalyst.moxiworks.com.local:9002/campaigns",
"assertedEvents": [
{
"type": "navigation",
"url": "http://catalyst.moxiworks.com.local:9002/campaigns",
"title": "Project Catalyst"
}
]
},
{
"type": "click",
"target": "main",
"selectors": [
[
"span.flex-1"
],
[
"xpath///*[@id=\"root\"]/div[1]/main/div/div/header/div[2]/div/button/span[2]"
],
[
"pierce/span.flex-1"
],
[
"text/Create Campaign"
]
],
"offsetY": 5.6996307373046875,
"offsetX": 59.3306884765625
},
{
"type": "click",
"target": "main",
"selectors": [
[
"#headlessui-portal-root div:nth-of-type(3) > div"
],
[
"xpath///*[@id=\"headlessui-dialog-panel-:rbp:\"]/div/div/div/div/div[3]/div"
],
[
"pierce/#headlessui-portal-root div:nth-of-type(3) > div"
]
],
"offsetY": 82,
"offsetX": 149.875
},
{
"type": "click",
"target": "main",
"selectors": [
[
"footer span.flex-1"
],
[
"xpath///*[@id=\"headlessui-dialog-panel-:rbp:\"]/div/div/footer/button/span[2]"
],
[
"pierce/footer span.flex-1"
],
[
"text/Next"
]
],
"offsetY": 3.4569091796875,
"offsetX": 58.0733642578125
},
{
"type": "click",
"target": "main",
"selectors": [
[
"[data-testid='close-button'] svg"
],
[
"xpath///*[@data-testid=\"close-button\"]/span[2]/svg"
],
[
"pierce/[data-testid='close-button'] svg"
]
],
"offsetY": 3.654022216796875,
"offsetX": 9.54876708984375
},
{
"type": "click",
"target": "main",
"selectors": [
[
"main > div"
],
[
"xpath///*[@id=\"root\"]/div[1]/main/div"
],
[
"pierce/main > div"
]
],
"offsetY": 266,
"offsetX": 1164
},
{
"type": "keyDown",
"target": "main",
"key": "Enter"
},
{
"type": "keyUp",
"key": "Enter",
"target": "main"
},
{
"type": "click",
"target": "main",
"selectors": [
[
"button.bg-transparent > span.flex-1"
],
[
"xpath///*[@id=\"app-header-end\"]/div/button[1]/span[2]"
],
[
"pierce/button.bg-transparent > span.flex-1"
],
[
"text/Save"
]
],
"offsetY": 3.6981735229492188,
"offsetX": 47.212646484375
}
]
}
@levchenkod
Copy link
Author

How to use

  • open dev tools
  • open the Recording tab
  • import the json file
  • click the replay button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment