mardi 23 mai 2017

instead of xpath what can i select from the below code

Please help me to find locator in this case as id is dynamic and it changes every time when I refresh the page.

type="text" also I will not be able to use because, for the next fields, eveything is same from the down code except, the label changes from the "first name" to the "last name" and so on.

So I should be selecting something in terms of the first name which is mentioned in the label tag below.

Please anyone can help me in this case.

  <input class="md-input-element ng-valid ng-dirty ng-touched" id="md-
  input-4-input" spellcheck="false" type="text">
  <!--template bindings={}-->

  <label class="md-input-placeholder md-float md-empty" for="md-input-
  4-input">First name * <!--template bindings={}--></label>

Aucun commentaire:

Enregistrer un commentaire