<input _ngcontent-c6="" formcontrolname="password" 
    name="password" onblur="this.placeholder = 'Password'" 
    onfocus="this.placeholder = ''" 
    placeholder="Password" 
    required="" type="password" 
    ng-reflect-required="" ng-reflect-name="password" 
    class="ng-pristine ng-invalid ng-touched"> 
What is the best way to find an element: placeholder = "Enter Username"?
Scenario: find an element using Snippet above User clicks on the "Enter Name" box, another window pops-up for entering a name.
For placeholder you can use:
element(by.css('[placeholder = "Password"]'));
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With