Instantly share code, notes, and snippets.
Created
October 11, 2025 10:32
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
-
Save radosek/b393945f4a57c4bbc4561dd6b68a5c01 to your computer and use it in GitHub Desktop.
Framer Automation - Navbar + Footer | Tablet + Mobile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Name": "Navbar+Footer Automated", | |
| "CreationDate": "2025-10-11", | |
| "Commands": [ | |
| { | |
| "Command": "bringBrowserToForeground", | |
| "Target": "", | |
| "Value": "", | |
| "Description": "" | |
| }, | |
| { | |
| "Command": "XType", | |
| "Target": "${KEY_ALT+KEY_2}", | |
| "Value": "", | |
| "Description": "Switch to Layers" | |
| }, | |
| { | |
| "Command": "click", | |
| "Target": "//div[@data-testid='layer-name-input']//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'tablet')]", | |
| "Value": "", | |
| "Description": "Click on tablet" | |
| }, | |
| { | |
| "Command": "XType", | |
| "Target": "${KEY_ENTER}", | |
| "Value": "", | |
| "Description": "Open tablet" | |
| }, | |
| { | |
| "Command": "XClick", | |
| "Target": "//div[@data-testid='layer-name-input']//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'tablet')]/ancestor::div[contains(@class,'base_')]//following-sibling::div//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'navbar')][1]", | |
| "Value": "", | |
| "Description": "Click on the navbar in tablet" | |
| }, | |
| { | |
| "Command": "select", | |
| "Target": "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "Value": "label=Tablet - w/ City - Closed", | |
| "Targets": [ | |
| "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "xpath=//div[8]/div[2]/div[2]/div/select", | |
| "css=#code-component-panel > div:nth-child(2) > div:nth-child(2) > div > select" | |
| ], | |
| "Description": "Switch navbar variant for tablet" | |
| }, | |
| { | |
| "Command": "XClick", | |
| "Target": "//div[@data-testid='layer-name-input']//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'tablet')]/ancestor::div[contains(@class,'base_')]//following-sibling::div//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'footer')][1]", | |
| "Value": "", | |
| "Description": "Click on the footer in tablet" | |
| }, | |
| { | |
| "Command": "select", | |
| "Target": "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "Value": "label=Tablet", | |
| "Targets": [ | |
| "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "xpath=//div[8]/div[2]/div[2]/div/select", | |
| "css=#code-component-panel > div:nth-child(2) > div:nth-child(2) > div > select" | |
| ], | |
| "Description": "Switch footer variant for tablet" | |
| }, | |
| { | |
| "Command": "click", | |
| "Target": "//div[@data-testid='layer-name-input']//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'phone')]", | |
| "Value": "", | |
| "Description": "Click on phone" | |
| }, | |
| { | |
| "Command": "XType", | |
| "Target": "${KEY_ENTER}", | |
| "Value": "", | |
| "Description": "Open phone" | |
| }, | |
| { | |
| "Command": "XClick", | |
| "Target": "//div[@data-testid='layer-name-input']//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'phone')]/ancestor::div[contains(@class,'base_')]//following-sibling::div//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'navbar')][1]", | |
| "Value": "", | |
| "Description": "Click on the navbar in phone" | |
| }, | |
| { | |
| "Command": "pause", | |
| "Target": "100", | |
| "Value": "", | |
| "Description": "" | |
| }, | |
| { | |
| "Command": "select", | |
| "Target": "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "Value": "label=Phone - w/ City - Closed", | |
| "Targets": [ | |
| "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "xpath=//div[8]/div[2]/div[2]/div/select", | |
| "css=#code-component-panel > div:nth-child(2) > div:nth-child(2) > div > select" | |
| ], | |
| "Description": "Switch navbar variant for phone" | |
| }, | |
| { | |
| "Command": "XClick", | |
| "Target": "//div[@data-testid='layer-name-input']//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'phone')]/ancestor::div[contains(@class,'base_')]//following-sibling::div//input[contains(translate(@value,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'footer')][1]", | |
| "Value": "", | |
| "Description": "Click on the footer in phone" | |
| }, | |
| { | |
| "Command": "pause", | |
| "Target": "100", | |
| "Value": "", | |
| "Description": "" | |
| }, | |
| { | |
| "Command": "select", | |
| "Target": "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "Value": "label=Phone", | |
| "Targets": [ | |
| "xpath=//*[@id=\"code-component-panel\"]/div[2]/div[2]/div/select", | |
| "xpath=//div[8]/div[2]/div[2]/div/select", | |
| "css=#code-component-panel > div:nth-child(2) > div:nth-child(2) > div > select" | |
| ], | |
| "Description": "Switch footer variant for phone" | |
| }, | |
| { | |
| "Command": "XType", | |
| "Target": "${KEY_ALT+KEY_1}", | |
| "Value": "", | |
| "Description": "Switch to Pages" | |
| }, | |
| { | |
| "Command": "comment", | |
| "Target": "XClick // xpath=(//div[@data-testid='page-row' and @aria-selected='true'][@aria-expanded='false']//button[contains(@class,'collapseArea')])[1]", | |
| "Value": "", | |
| "Description": "Click on selected arrow if not expanded" | |
| }, | |
| { | |
| "Command": "click", | |
| "Target": "xpath=(//div[@data-testid='page-row' and @aria-selected='true']/ancestor::div[contains(@class,'rowContainer')]/following-sibling::div[1]//div[@data-testid='page-row'])[1]", | |
| "Value": "", | |
| "Description": "Next after selected" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment