jeudi 25 avril 2019

With Puppeteer how can I click the parent element of my selector?

The markup i have to work with looks like this:

<label>
    <input type="radio" value="Yes" size>
</label>

I want to call page.click() with the radio as the selector, but I can't. I don't think it is visible because of the size attribute.

So I would like to target and click the parent label element.

Aucun commentaire:

Enregistrer un commentaire