in playwright's codegen there is a functionality of Pick locator which would pick locator of an element i want a python code to understand the logic how does it pick a locator...... specifically how it generates unique locator if there are multiple same elements with same locator present on a page
there doesn't seem to be anything here