我有一个简单的代码,帮我爬到谷歌结果页的第2页: var ie= new IE();
ie.Link(Find.ByText("2")).Click();
我要的是爬行到更下一个页面,在输入的页面的数量,让我作出这样一个循环: string[] page = null;
for (int i = 0; i < NumOfPage; i++)
{
我要清除所有Cookie在我的IE浏览器与下面的代码: public void ClearCookie()
{
string[] Cookies =
System.IO.Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));
for
我有一个关于去网站的项目。如果网站无法加载,浏览器将显示一个页面,文字为:“此页面无法显示”。在这种情况下,我想自动刷新浏览器。程序如何检测到该网站无法加载? 。我试过Ping()检查连接,但似乎连接没问题。看看我的下面的代码: public void exam()
{
var ie = new IE();
ie.GoTo("http://search.ya
我可以用ReSharper运行我的WatiN测试,没有问题。每个测试都有RequiresSTA属性并且运行正常。 当我尝试运行的类(的TestFixture)我得到以下错误的所有测试: One or more child tests had errors
Exception doesn't have a stacktrace
<testname> ignored: Invalid signat