selenium dowload code example
Example 1: how to download in selenium
Selenium itself cannot verify file downloads, can click on download link
but can't go outside the browser and open the downloaded file
Other tools need to be used for that Robot and AutoIT
Example 2: @findby selenium
@FindBy(how = How.CLASS_NAME, using = "classname")
private List<WebElement> singlecriterion;
Example 3: @findby selenium
@FindBy(how = How.ID, using = "elementid")
private WebElement element;
Example 4: downloading in selenium
Selenium itself cannot verify file downloads, can click on download link
but can't go outside the browser and open the downloaded file
Other tools need to be used for that Robot and AutoIT