我正在尝试填写标有 id="admin_passsword" 的两个文本框。我可以轻松访问第一个,但由于除了占位符和它上面的标签之外没有其他区别,我不知道如何访问第二个文本框来填写该字段。
<div class="fields">
<div class="field-row">
<label for="admin_email">Email</label>
<input autocapitalize="off" id="admin_email" name="admin[email]" placeholder="Email" size="30" type="text" value="">
</div>
<div class="field-row">
<label for="admin_serial_number">Serial number</label>
<input id="admin_serial_number" name="admin[serial_number]" placeholder="Serial Number" size="30" type="text">
</div>
<div class="field-row">
<label for="admin_password">Password</label>
<input id="admin_password" name="admin[password]" placeholder="Password" size="30" type="password">
</div>
<div class="field-row">
<label for="admin_password_confirmation">Password confirmation</label>
<input id="admin_password" name="admin[password]" placeholder="Confirm Password" size="30" type="password">
</div>
</div>