I am having trouble filling in a login form using javascript.
This is the form I want to fill using javaScript:
https://dashboard.dnb.com/login

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.email.value = "[email protected]"
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


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to