For the mentioned code
<div class="md-input-infix">
<!--template bindings={}-->
<input class="md-input-element ng-pristine ng-valid ng-touched" id="md-input-19-input" spellcheck="false" type="text">
<!--template bindings={}--><!--template bindings={}-->
<label class="md-input-placeholder md-empty md-float" for="md-input-19-input">First name *
<!--template bindings={}-->
</label>
</div>
1.)In this code, id changes every time.So,I will not be able to select id as locator
2.)I can use CSS by type="text",but on the page there is many more elements with this type ="text".So, this will also not work.
3)I am working on chrome for inspecting element.In this case, if I could select XPath, it will be coming with id inside it.
4)I don't want to go with the absolute XPath.
6)Someone can provide me the solution for this problem.