After much research, this is the solution I found (at least to work with 
the particular web site I want to auto fill information for).
I fill in the fields:
document.getElementById('email').value="t...@email.com"
angular.element(document.getElementById('email')).triggerHandler('input')
document.getElementById('password').value="password"
angular.element(document.getElementById('password')).triggerHandler('input')

Now the button works as if the user typed in the information manually.
Hope this helps others.

-tom


On Monday, July 10, 2017 at 10:25:55 AM UTC-7, Tom Wynne wrote:
>
> I don't have access to the code, i am not the owner of the site.  I just 
> want to fill in the username and password with javascript code (from a 
> chromium web browser control in .net) and be able to click the submit 
> button.  I can't figure out how to make the submit button accept the values 
> i have entered.  There is something i need to do to register that data has 
> been entered into the fields.
> thanks
> -tom
>
> On Sunday, July 9, 2017 at 11:39:49 PM UTC-7, Sander Elias wrote:
>>
>> Hi Tom,
>>
>> Why don't yu just set the default values from withing angular?
>>
>> Regards
>> Sander
>>
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to