Download File Using Selenium WebDriver

  1.  Create a FireFox Profile.
  2. Set Preferences as per requirement.
  3. Open Firefox with FireFox Profile.

Let us implement the same through Script