Hi community,
I'm doing an automation that includes selection box of specific elements:
Element: <span class="v-checkbox v-select-option"><input type="checkbox" value="on" id="gwt-uid-175" tabindex="0"><label for="gwt-uid-175"><div class="tax-percentage-option group"><div class="floated-left name">ICMS</div><div class="floated-left country">Brasil</div><div class="floated-left type">Imposto</div><div class="floated-right percentage">5</div></div></label></span>
I did: span.v-checkbox.v-select-option:has(label div.tax-percentage-option.group div.floated-left.name:contains('ISS')):has(label div.tax-percentage-option.group div.floated-left.country:contains('Brasil')):has(label div.tax-percentage-option.group div.floated-left.type:contains('Retenção')):has(label div.tax-percentage-option.group div.floated-right.percentage:contains('%aliqiss%')) input[type="checkbox"][value="on"]
The problem is div.floated-right.percentage:contains(%aliqiss) o the contains makes it select elements that contain the value of the variable %aliqss%, for example, aliqiss=5, but it selects elements 4.5 5.5, because the contains opens this loophole. Is it possible to div.floated-right.percentage = %aliqiss% and not "Contains"?
If anyone knows I would appreciate it, or if you have another solution I'm open.
