mardi 18 avril 2017

How to click on checkbox with nightmarejs?

I have a checkbox that looks like this:

<input type="checkbox" id="107" value="on">

My nightmare script has this:

 .click("input#107[type='checkbox']") 

Yet returns with this error:

error: Failed to execute 'querySelector' on 'Document': 'input#107[type='checkbox']' is not a valid selector.

How can I check the checkbox?

Aucun commentaire:

Enregistrer un commentaire