I am having trouble filling in a login form using javascript.
This is the form I want to fill using javaScript:
I need to autofill the login/password then autofill other forms for a financial application.
I can't seem to get the fields to apply the input values I submit using this code using Chrome F12:
loginForm.password.value = "password"
This fills the fields in but when I hit the Login button, it thinks none of the fields have been filled out.
I am not very familiar with Angular so am in the dark.
I assumed i need to tell Angular to apply the values but none of the examples would work for this site:
I tried:
angular.element(loginForm.email).scope.$apply()
Says:
Uncaught TypeError: angular.element(...).scope.$apply is not a function
Not sure how to get to the scope object to set it to apply the input values. If I can just get this form working, I am sure I can get the rest working as well.
Thanks