Meraki custom script

Meraki custom script

Tech support recently provided me with the following custom script to use with Meraki.  This script will automate the login and refresh of the screen.  I also altered the script to use the Exclude command, which will exclude all other content except the selector you include within the Exclude statement, and I added a refresh command sequence to refresh the rate.  In this case, the refresh is set to 30 seconds for the sake of testing.

pause(2)

type("""#email""", """Your Email Here""")

pause(2)

runScript("""document.querySelector("#email").dispatchEvent(new Event("change"))""")

pause(2)

click("""#next-btn""")

pause(2)

type("""#password""", """Your Password Here""")

pause(2)

runScript("""document.querySelector("#password").dispatchEvent(new Event("change"))""")

pause(2)

click("""#login-btn""")

repeat(0){

pause(2)

extract("""#sidetabs_body_container""")

pause(30)

refresh()

}