mardi 2 novembre 2021

How to check svg checkbox tree using a console in Dev Tools?

I'd like to write a command to check a checkbox, however, i got stuck with writing appropriate querryselector for svg object (checkbox) and choosing a first child in a tree. Another trick - here is a checkbox tree.site with a checkbox

sample is below

<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="rct-icon rct-icon-uncheck" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg" xpath="1"><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></svg>

here is a link to website: https://demoqa.com/checkbox




Aucun commentaire:

Enregistrer un commentaire