
Private String downloadPath = System.getProperty("java.io. Private static final Logger LOGGER = LoggerFactory.getLogger(EbselenCore.class) * See the License for the specific language governing permissions and * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * distributed under the License is distributed on an "AS IS" BASIS,

* Unless required by applicable law or agreed to in writing, software * You may obtain a copy of the License at * you may not use this file except in compliance with the License. * Licensed under the Apache License, Version 2.0 (the "License") * Copyright (c) 2010-2011 Ardesco Solutions.

Generally, it works well and is cross-platform/cross-browser compliant. There are some instances where it won't work (where the link found on the page does not actually link to the download file but a layer to prevent automated file download). It then uses apache commons to replicate the browser session used by selenium and then download the file. This finds the link on the page and extracts the URL being linked to.

You can check the header response to check that you get a 200 OK (or maybe a redirect, depends on your expected outcome) and it will tell you that a file exists. The classes in this module can be used to automatically search for and download the latest version (or a specific version) of a WebDriver binary and then extract it and place it by copying or symlinking it to the location where Selenium or other tools should be able to find it then.
