cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

get element locators

adm
Dynatrace Helper
Dynatrace Helper

Is there a way to get the element locators that the extension generates without recording? Maybe with devtools?

 

These:

2021-08-25_12-13-51.png

3 REPLIES 3

AK
Pro

Hi,

 

You can try adding something like below as css locator.

AK_1-1629912317433.png

Let me know if that helps.

 

Regards,

AK

adm
Dynatrace Helper
Dynatrace Helper

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

HannahM
Dynatrace Leader
Dynatrace Leader

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. 

Synthetic SME and community advocate.

Featured Posts