I have an element with a class element like this:
<input class="form-control ng-empty ng-invalid ng-invalid-required ng-valid-parse ng-pristine ng-touched">...</input>
The recorder creates a valid xpath. Problem is that the order of the values in class seem to change dynamically. Therefore, the XPATH becomes invalid randomish soon.
Maybe there is a neat way to prefer attributes with only 1 value.
Test Case:
- Start Camunda platform
- open browser, open Camunda login page
- start recording
- insert username/password : demo/demo
- click on login
- stop recording
- execute recorded test cases a couple of times.
I have an element with a class element like this:
The recorder creates a valid xpath. Problem is that the order of the values in
classseem to change dynamically. Therefore, the XPATH becomes invalid randomish soon.Maybe there is a neat way to prefer attributes with only 1 value.
Test Case: