Skip to content

[Selenium] Recorder prefers "class" attribute #11

@Noordsestern

Description

@Noordsestern

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions