Cannot select a checkbox in codeception

787 Views Asked by At

Here is the code which I have used to select a checkbox:

create-event-form this is the form id and checkbox name "published". I have used this sometimes its working and sometimes its not. totally confused!

$I->checkOption('#create-event-form input[type=checkbox]');

but it's not working!

can anybody suggest where i'm wrong.

0

There are 0 best solutions below