【发布时间】:2015-12-29 23:26:11
【问题描述】:
我正在尝试使用PhantomJS 下载文件,但是当我点击下载时,没有下载文件,我读到Phantomjs 不支持下载,但我需要它,你能帮帮我吗?
这是我尝试下载时的部分代码:
try
{
checkbox = wait.Until(ExpectedConditions.PresenceOfAllElementsLocatedBy(By.XPath("//form[@id='formDownload']//table[@class='fileTables']//tbody//tr//td//input[@class='checkbox']")));
checkbox[countLine - 1].Click();
wait.Until(ExpectedConditions.ElementExists(By.Id("all"))).Click();
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
【问题讨论】:
标签: c# selenium webdriver phantomjs