expect(sleepPage.selection.get(2).getAttribute('checked')).toBeTruthy();
if it's checked then it's returns true else false .
sleepPage.selection.get(2).getAttribute('checked').then(function( checked){
if (checked = true)
//your logic
})_
On Sat, Oct 25, 2014 at 11:49 AM, Anton Trapp <[email protected]> wrote:
> Forget the question. I just figured out (after hours of googling) that I
> have to write half a page of code for simple stuff like
> $('elem.class:visible).count().should_be gt(0) - AngularJS integration is
> nice, but if I have to spend hours of time to figure out how to
> filter/reduce results and spent most of my time writing tests code and
> helpers so that the test code stays DRY... nothing for me, I rather use
> something efficient.
>
> --
> 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.
>
--
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.