I've run into this issue a few times in particular with Continue Buttons and Radio Dials that are javascript based. Recording these elements, whether they are added to the repository beforehand or after are not being recorded with the custom name given. Instead, it gives it a generic name (continuespan, continuespan(), span0 , etc) which sometimes causing the test to fail on subsequent executions.
I noticed that the FindLogic is picking up the div id and tagindex. The problem I've noticed is that in other tests using the same webpage but with different factors, the span number will change. No matter what I name these buttons to when recording the test, it is not saved in the test and does not appear anywhere when editing the element.
What is the best solution to this problem?
Attached screenshots for reference.
I noticed that the FindLogic is picking up the div id and tagindex. The problem I've noticed is that in other tests using the same webpage but with different factors, the span number will change. No matter what I name these buttons to when recording the test, it is not saved in the test and does not appear anywhere when editing the element.
What is the best solution to this problem?
Attached screenshots for reference.