Experience & exploration about software QA tools & techniques. Maintaining & writing blog posts on qavalidation.com! Publishing video tutorials on youtube.com/qavbox

Download files in firefox browser using selenium WebDriver

There are situations where we need to Download files from browser, Save in a specified folder on hard disk. We will use browser preferences to [much simpler way] Disable file save dialog set download path Download the latest geckodriver for firefox from https://github.com/mozilla/geckodriver/releases We will use FirefoxOptions to set browser preferences Code implementation ublic class FileDownloadFireFox { public static void main(String[] args)…