I was successful with my issue by using the information from "Мишаня Дзюба" 
but using "change" instead of "input" for the trigger parameter.

On Thursday, January 2, 2014 4:44:13 AM UTC-6, Мишаня Дзюба wrote:
>
> Try this:
> CurrentBrowser.RunScript(String.Format("$( \"{0}[ng-model='{1}']\" 
> ).trigger('input')", element.TagName, modelName)); //if you are using 
> nt-model attribute for selection or
> CurrentBrowser.RunScript(String.Format("$( \"#{0}\" ).trigger('input')", 
> element.Id)); //if you select it by ID
>
> On Friday, November 16, 2012 2:48:57 PM UTC+2, Pepa Štefan wrote:
>>
>> Hi, I tried to use Watin with Angular, but my attempt failed quite soon. 
>> I have a very simple form with some validations and a controller. Something 
>> like this: http://jsfiddle.net/dtgSF/
>>
>> I started watin, opened page with this form and fill the form with watin 
>> (PowerShell code)
>>
>> $companyName = 'test company'
>> $ie.TextField('company').value = $companyName
>> $ie.TextField('email').value = '[email protected]'
>> $ie.TextField('password1').value = 'pass'
>>
>> GetButton -Id register | Click
>>
>> After I call click, the register() handler is called. The $scope.regform.
>> $invalid is still true, so $scope.regform.$setDirty(true); is called and 
>> the form is turned to red.
>>
>> What should I call to notify angular that content of the fields has 
>> changed? Then $scope.regform.$invalid would be false and the 
>> registration might continue.
>>
>> If I call 
>> $ie.Eval('App.run(function($rootScope) { $rootScope.$digest(); });')
>> it doesn't help.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to