Web Scripting

Web Scripting

The end result I want to achieve is to login to Facebook and show a clients photos, scrolling every ten seconds.

I am stuck on the Facebook login page. the username field highlights but no test is entered. I have tried all three sample scripts in the web scripting documentation with the same results. Example:

type("""email_css_selector""", """afm*****@me.com""")
type("""password_css_selector""", """********""")
runScript("""
document.querySelector('email_css_selector').dispatchEvent(new Event("input", { bubbles: true }))
document.querySelector('password_css_selector').dispatchEvent(new Event("input", { bubbles: true }))
""")
pause(1)
clickAndWait("""login_button_css_selector""")