antonmedv/finder

Finder returns non-unique selector

vedantroy opened this issue · 3 comments

On this page: https://www.buildzoom.com/contractor/live-wire-electric-1-llc

Calling finder on the element returned by this selector: "#credentials > div.team-wrap.row > div:nth-child(2) > div:nth-child(1) > div.biz_info.no-bottom-border.biz-info- > div.bz-content-wrapper > div > table > tbody > tr:nth-child(1) > td.table-item.u-hyphenate"

will make finder return the selector ".table-item", which is non-unique.

Can you make PR with a falling test for this case?

I think this isn't an issue anymore

image

I'll share my finding here just in case. Given an element:

<input class="form-control focus-visible" type="text" placeholder="Hello World" required=""  value="">

Screen Shot 2022-04-06 at 15 01 13

So in conclusion, it's better to adjust the seedMinLength option accordingly.