@Test public void downloadAFile() throws Exception { FileDownloader downloadTestFile = new FileDownloader(driver); driver.get("http: WebElement downloadLink = driver.findElement(By.id("fileToDownload")); downloadTestFile.fileDownloader(downloadLink); }
public FileDownloader(WebDriver driverObject) { this.driver = driverObject; }
FileDownloader { public FileDownloader(WebDriver driverObject) { this.driver = driverObject; } }
FileDownloader { public FileDownloader(WebDriver driverObject) { this.driver = driverObject; } FileDownloader(WebDriver driverObject); }
FileDownloader { public FileDownloader(WebDriver driverObject) { this.driver = driverObject; } FileDownloader(WebDriver driverObject); String getDownloadPath(); void setDownloadPath(String filePath); String fileDownloader(WebElement element); String imageDownloader(WebElement element); String downloader(WebElement element, String attribute); }
FileDownloader { public FileDownloader(WebDriver driverObject) { this.driver = driverObject; } FileDownloader(WebDriver driverObject); String getDownloadPath(); void setDownloadPath(String filePath); String fileDownloader(WebElement element); String imageDownloader(WebElement element); String downloader(WebElement element, String attribute);  }