25 Aug 2021 05:15 PM - edited 25 Aug 2021 05:17 PM
Is there a way to get the element locators that the extension generates without recording? Maybe with devtools?
These:
Solved! Go to Solution.
25 Aug 2021 06:23 PM - edited 25 Aug 2021 06:25 PM
Hi,
You can try adding something like below as css locator.
Let me know if that helps.
Regards,
AK
25 Aug 2021 08:36 PM
Will this be as stable as the element locators that the recorder generates? The recorder seems to provide multiple locators every time as opposed to just one
26 Aug 2021 09:23 AM - edited 26 Aug 2021 09:24 AM
The algorithm we use to create all the element locators is quite complicated so I can't provide you the exact information. We, also, use different cases for ids, forms, links, anchors, input fields and so on but as AK mentioned you can get the locators from Dev tools. You can use most specific one first and then expand to use others.