我有这个网站,我想点击“登录”按钮。 https://www.paycomonline.net/v4/ee/web.php/app/login
我玩了一些功能但没有成功(我不是网络编码器/程序员)。
创建按钮的行是:
<button type="submit" name="submit" id="btnSubmit" class=" waves-effect waves-light" aria-label="Log In">Log In</button>
任何人都可以帮助我吗? 提前谢谢!
表格的完整代码为:
<form role="form" action="" method="post" >
<div class="cardContainer shadow padding marginBottom formGroup row">
<div class="row formRowStandard ">
<label class="standard" for="txtlogin"><span class="required">*</span>Username</label>
<div class="formLine">
<div class="formControl fbControl">
<input type="text" name="username" type="text" name="username" id="txtlogin" size="25" maxlength="75" placeholder="Username" class=" inputBoxBorder" aria-label="Username" required="required" value="">
</div>
</div>
</div>
<div class="row formRowStandard ">
<label class="standard" for="txtpass"><span class="required">*</span>Password</label>
<div class="formLine">
<div class="formControl fbControl"><input type="password" name="userpass" type="password" name="userpass" id="txtpass" size="25" maxlength="20" placeholder="Password" autocomplete="off" class=" checkForCapslock inputBoxBorder" aria-label="Password" required="required" value="">
</div>
</div>
</div>
<div class="row formRowStandard "><label class="standard" for="userpinid"><span class="required">*</span>Last 4 digits of SSN</label>
<div class="formLine">
<div class="formControl fbControl"><input type="password" name="userpin" type="password" name="userpin" id="userpinid" size="25" maxlength="4" placeholder="Last 4 digits of SSN" class=" inputBoxBorder" aria-label="Last 4 digits of SSN" required="required" value="">
</div>
</div>
</div>
<div class="row formRowStandard ">
<div class="formLine">
<div ><button type="submit" name="submit" type="submit" name="submit" id="btnSubmit" class=" waves-effect waves-light" aria-label="Log In">Log In</button>
</div>
</div>
</div>
</div>
</form>
答案 0 :(得分:-1)
实际上可以使用它:
document.getElementById("btnSubmit").click();