Can some one please guide how can i select the check box using nightwatch JS

2,001 views
Skip to first unread message

mamta jolly

unread,
Jul 17, 2014, 6:18:27 AM7/17/14
to nightw...@googlegroups.com
I was trying ds 

.useXpath()
  .click('(//input[@type=checkbox])[1]')

but its not working. can some one please share one example. 

Also that these checkboxes are dynamically created on selection on another component. 

David Linse

unread,
Jul 17, 2014, 6:21:24 AM7/17/14
to nightw...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/551c2549-cfb3-45a9-9e9a-2943953f06e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mamta jolly

unread,
Jul 18, 2014, 2:16:10 AM7/18/14
to nightw...@googlegroups.com

  .waitForElementVisible('#widgetMultiCheckBoxContaner')
  .click('#widgetMultiCheckBoxContaner .ng-valid:nth-child(1)' )

i did by first identitifying the class  and then selecting the first element form the list. 

Thanks,
Mamta
Reply all
Reply to author
Forward
0 new messages