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('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.