package WebDriverSuper;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class DownLoadFile {
WebDriver driver;
String pathFile=“E:\”;
String url=“http://ftp.mozilla.org/pub/mozilla.org//firefox/releases/35.0b8/win32/zh-CN/”;
@Test
public void test() throws InterruptedException {
driver.get(url);
Thread.sleep(3000);
driver.findElement(By.partialLinkText(“Stub”)).click();
try {
Thread.sleep(10000);
} catch (Exception e) {