validate if a file has downloaded
try this linkhttps://www.seleniumeasy.com/selenium-tutorials/verify-file-after-downloading-using-webdriver-java