我正在尝试创建某种脚本来登录并单击站点上的某个链接。我已经包含了来自主站点的登录脚本,并且想知道是否有人可以告诉我如何在我加载此站点时将我的用户名和密码输入到此代码中,它会自动加载。或者,如果有人可以制作一个可以点击链接的脚本,那就太棒了。
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="Skin-CustomLoginTable">
<tr>
<td class="Skin-CustomLoginLeftSide">
</td>
<td class="Skin-CustomLoginRightSide">
<div class="Skin-CustomLoginWrapper">
<div class="Skin-CustomLoginInnerWrapper">
<table cellpadding="0" cellspacing="0" class="Skin-CustomLoginFormTable">
<tr>
<td><label>User Name</label></td>
<td><label>Password</label></td>
<td> </td>
</tr>
<tr>
<td class="Skin-CustomLoginInputs" id="LoginUserName"><span id="pageform_CZ1_2_CZ1_0_ctl01_ctl00" style="color:Red;display:none;">This field cannot be left empty.<br /></span><input name="pageform$CZ1$2$CZ1$0$ctl01$UserName" type="text" id="pageform_CZ1_2_CZ1_0_ctl01_UserName" size="35" class="Form-TextField" formID="3bd2a627-4646-4773-bb7a-262216b1e7aa" onkeypress="return(submitFormOnEnterFF('3bd2a627-4646-4773-bb7a-262216b1e7aa', event));" />
<td class="Skin-CustomLoginInputs" id="LoginUserPW"><span id="pageform_CZ1_2_CZ1_0_ctl02_ctl00" style="color:Red;display:none;">This field cannot be left empty.<br /></span><input name="pageform$CZ1$2$CZ1$0$ctl02$Password" type="password" id="pageform_CZ1_2_CZ1_0_ctl02_Password" size="35" class="Form-TextField" formID="3bd2a627-4646-4773-bb7a-262216b1e7aa" onkeypress="return(submitFormOnEnterFF('3bd2a627-4646-4773-bb7a-262216b1e7aa', event));" />
<td class="Skin-CustomLoginButton" id="LoginButton">