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 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 sp
What I do:
RegistrationPage = ->
@email = element(`by`.model('user.email'))
@tosAgreement = element(`by`.model('user.tosAgreement'))
later:
@email.sendKeys('whatever')
... working great, everything else too (clear, ...)
@tosAgreement.isSelected()
isSelected is returning a parentEle
>
> Hi Anton,
>
I used protractor,but need to look on script so that we can check whats
going on..
Thanks
Ravi
--
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
Throw up some code. It's likely your logic is wrong rather than
isSelected().
Adrian
On 24 October 2014 13:38, Anton Trapp wrote:
> Nobody writing e2e tests for AngularJS projects? Or nobody using
> protractor? Any good testing frameworks that support input elements like
> checkboxes for Angula
Nobody writing e2e tests for AngularJS projects? Or nobody using
protractor? Any good testing frameworks that support input elements like
checkboxes for AngularJS e2e tests?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this