【发布时间】:2016-01-14 00:34:57
【问题描述】:
当用户登录时,我可以看到下面的 html 源代码。我正在尝试使用 C# 中的 Webdriver 实现“更改密码”链接的点击操作。
当用户 1 登录时,以下示例代码生成更改密码链接:
<td> <a href="../../siteagent/pw/ser.fcc?SENC=UTF-8 &TSON=34&TARGET=/uas/authaction/slogin.do&USERNAME=xxxxx@xxx.com"> <img src="/u/default/img/global/change_password.gif;jsessionid=xxxxxxxEA57DB0A9F754B53A6E" width="92" height="15" alt="Change Password" border="0"></a></td>
当用户 2 登录时,以下示例代码生成更改密码链接:
<a href="../../siteagent/pw/ser.fcc?SMENC=UTF-8 &TSON=34&TARGET=/uas/authaction/slogin.do&USERNAME=xxxxx@xxx.com">Change Password</a>
【问题讨论】: