These are chat archives for Codeception/CodeceptJS

18th
Jul 2018
poonamagashe
@poonamagashe
Jul 18 13:14

Hello guys, I am new to the codeceptJS. I need your help.
Here is my code:

<ul class="todo-list">
<li class="">
<div class="view">
<input type="checkbox" class="toggle" value="on">
<label>vhgvyjtfyy</label><button class="destroy">
</button></div></li><li class=""><div class="view">
</li>
<li>
<input type="checkbox" class="toggle" value="on">
<label>poonam</label><button class="destroy">
</button></div></li>
</ul>

can anyone suggest me what function i should use to click the checkbox of nth element in the list?

Arrivle
@Arrivle
Jul 18 20:46
@poonamagashe I can't clearly understand your hierarchy here, but try to use I.checkOption('ul li:nth-of-type(1) .toggle') or the same with I.click ;