segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.54k stars 1.08k forks source link

Unable to check the radio button #1614

Closed shashanka2a closed 4 years ago

shashanka2a commented 4 years ago

Initially I tried,click() method.But it only looks for button, link, or image.There is a check() method for radio buttons,but it is not working for me. It says : Failed: { TypeError: Cannot set property 'checked' of null

Is there a method called checkOption()?

Mako-L commented 3 years ago

document.querySelector('input').checked = true; And you use evaluate to run that and of course correct selector not 'input'