Created
August 20, 2020 10:49
-
-
Save angelovstanton/78315aefa3d02a2b19b2c08f27e7f2ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void VerifyFileDownloadChrome() throws IOException { | |
var expectedFilePath = Paths.get("c:\\temp\\Testing_Framework_2015_3_1314_2_Free.exe"); | |
try | |
{ | |
driver.navigate().to("https://www.telerik.com/download-trial-file/v2/telerik-testing-framework"); | |
wait.until(x -> Files.exists(expectedFilePath)); | |
long bytes = Files.size(expectedFilePath); | |
Assert.assertEquals(4326192, bytes); | |
} | |
finally | |
{ | |
if (Files.exists(expectedFilePath)) | |
{ | |
Files.delete(expectedFilePath); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment