首先添加引用Microsoft.mshtml.dll和WatiN.Core.dll

using WatiN.Core;  

string live = "http://cnweb.search.live.com/results.aspx?q=test&go=&form=QBLH";

                IE ie = new IE(live);
                Link link = ie.Links[2];
                ((mshtml.HTMLAnchorElementClass)(link.HTMLElement)).href = "http://lovebanyi.cnblogs.com/?";

                link.Click();
                ie.Close();

 

 

什么地方会用到这个呢:

做流量统计的时候,

当一个页面来源于google ,baidu时的特殊提示或处理。

推广作弊

 

相关文章:

  • 2021-06-12
  • 2021-05-16
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2021-05-30
  • 2021-07-03
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
相关资源
相似解决方案