Allow to specify a unique property instead of ID
Very good tool, it would be perfect if we could tell the SPY to look at another unique property instead of the id
<input class="form-control ng-pristine ng-invalid ng-touched" formcontrolname="prenom" type="text" placeholder="Nom" style="null">

manual trick
- create id with the same value of formcontrolname
- after export i replace id by original property
elements = document.querySelectorAll('[formcontrolname]:not([id])') elements.forEach((item, index) => { value = item.getAttribute('formcontrolname') item.setAttribute('id', value) })

Thanks, If there aren't many elements with that locator attribute, then you could just edit the model and update the locator, before generating the code:

That said, maybe it's useful to allow users to provide a list of 'custom attributes of interest' which could be included when scanning.
Closing as this request is very specific to single user and can already be achieved by editing the locators.