How can I download the *.jar file from http:// seleniumhq.org using selenium WebDriver?

0 votes

I used the following steps i.e.  open the Browser > enter URL http://seleniumhq.org > Click Download tab > click Download version “2.46.0” link It opens a dialog window. And then click “Save File” button

Note: I have tried download *.xls file example code from  http://seleniumeasy.com/selenium-tutorials/how-to-download-a-file-with-webdriver which is working fine. It automatically handles the dialog box and saves the file in destination location but the same code is not working to download the *.jar file. Can anyone help me in this?

Apr 9, 2018 in Selenium by Vardy
• 2,280 points
246 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

For Selenium Standalone Server use this:

profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive");

and for downloading selenium java webdriver:

profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/zip");

answered Apr 9, 2018 by Martin
• 4,210 points

Related Questions In Selenium

0 votes
1 answer

Downloading *.jar file from http:// seleniumhq.org using Selenium WebDriver

For Selenium Standalone Server: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); If downloading ...READ MORE

answered Apr 17, 2018 in Selenium by Shubham
• 12,270 points
241 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

answered Apr 12, 2018 in Selenium by nsv999
• 5,030 points
820 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,030 points
70 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
439 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
54 views
0 votes
1 answer

How to get a page name using Selenium Webdriver (C#)?

I believe the below thing works: driver.Title; READ MORE

answered Sep 14, 2018 in Selenium by Martin
• 4,210 points
65 views
0 votes
1 answer

Difference between Action and Actions in Selenium

Action is an interface : public interface Action Action Interface represents ...READ MORE

answered Apr 9, 2018 in Selenium by Martin
• 4,210 points
2,008 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.