Queryselector Method that works for another website but doesn't work for the new website I am trying to automate
Code: Select all
target := ie.document.querySelector("INPUT[Name=""username""]")
target.value := "username"
event := ie.document.createEvent("Event")
event.initEvent("change", true, true)
target.dispatchEvent(event)
sleep, 100
target := ie.document.querySelector("INPUT[Name=""password""]")
target.value := "password"
event := ie.document.createEvent("Event")
event.initEvent("change", true, true)
target.dispatchEvent(event)
Code: Select all
ie.document.getElementByID("usernameInput-input").focus()
sleep, 100
ie.document.getElementByID("usernameInput-input").Value := "username"
ie.document.getElementByID("password-input").focus()
sleep, 100
ie.document.getElementByID("password-input").Value := "password"
Code: Select all
ie.document.getElementByID("usernameInput-input").Value := "username"
ie.document.getElementByID("usernameInput-input").fireevent("onchange")
sleep, 100
ie.document.getElementByID("password-input").Value := "password"
ie.document.getElementByID("password-input").fireevent("onchange")