I am trying to use puppeteer page.type with a CSS selector.
<div class="preloader">
<div class="cssload-speeding-wheel"></div>
</div>
<section id="wrapper" class="login-register">
<div class="login-box">
<div class="white-box">
<form class="form-horizontal form-material" id="loginform" method="post">
<h3 class="box-title m-b-20">Sign In</h3>
<div class="form-group ">
<div class="col-xs-12">
<input class="form-control" type="text" required="" name="login-username" placeholder="Username">
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="password" required="" name="login-password" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<div class="form-group">
<div class="col-md-12">
</div>
<div class="form-group text-center m-t-20">
<div class="col-xs-12">
<button type="submit" name="doLogin" class="btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light" type="submit">Log In</button>
</div>
</div>
<div class="form-group m-b-0">
I need assistance with setting up the username, password, and doLogin elements.
page.type("input[@placeholder='Username']", 'MYUSERNAME');
The above code is not working for me. Can someone please help?