Jump to content

Recommended Posts

Posted

Slowly losing my mind,

 

Using Yodeck to create a signage screen for software we use called natterbox: https://wbapp.natterbox.com

 

I have it so it enters the username and password but can't for the life of me get it to click the login button! I'm following their guidance here and used the click syntax: https://www.yodeck.com/docs/web-scripting-engine/scripting-engine-reference/

 

I think that the CSS selector is wrong but i've tried serveral and diffrent browsers to find it but no luck!

 

Even tried a script that simply presses enter but no luck...

 

Hopefully someone a bit more code savvy can work this one out quick....

Posted

Your wish is my command:

 

pause(1)
type("""#username""", """myusername""")
pause(1)
type("""#password""", """mypassword""")
pause(1)
runScript("""
document.querySelector("#username").dispatchEvent(new Event("change"))
document.querySelector("#password").dispatchEvent(new Event("change")) 
""")
pause(1)
clickAndWait("""body > div > div > div > div > div.panel-body.panel-padded > form > div.form-actions > button""")
pause(1)

 

Steve

  • Thanks 2
Posted
Your wish is my command:

 

pause(1)
type("""#username""", """myusername""")
pause(1)
type("""#password""", """mypassword""")
pause(1)
runScript("""
document.querySelector("#username").dispatchEvent(new Event("change"))
document.querySelector("#password").dispatchEvent(new Event("change")) 
""")
pause(1)
clickAndWait("""body > div > div > div > div > div.panel-body.panel-padded > form > div.form-actions > button""")
pause(1)

 

Steve

 

Legend thank you!

  • Thanks 1
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...