I'm struggling to get proper css (or any pother) locator for my checkbox. There are two on the page with same attributes by different text, I don't know how to build working selector. I want to avoid using index. I want to select them by 'Name1'
and 'Name2'
Here are the attributes:
<label>
<input class="some class name" name="checkOptions" type="checkbox">Name1
</label>
<label>
<input class="some class name" name="checkOptions" type="checkbox">Name2
</label>