anyone know how to write css selector to find a element that include exactly text. I have tried
label:contains("^ab$")
or label[innertext="ab"]
or label[text="ab"]
none of them works
<div>
<label>ab</label>
<label>ab cd</label>
<label>ab asd cd</label>
</div>
I only want to find the element <label>ab</label>