io.github.bonigarcia.wdm.ChromeDriverManager Maven / Gradle / Ivy
/*
* (C) Copyright 2015 Boni Garcia (http://bonigarcia.github.io/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-2.1.html
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*/
package io.github.bonigarcia.wdm;
import java.net.URL;
import java.util.List;
/**
* Manager for Chrome.
*
* @author Boni Garcia ([email protected])
* @since 1.0.0
*/
public class ChromeDriverManager extends BrowserManager {
@Override
protected List getDrivers(Architecture arch, String version)
throws Exception {
String driverVersion = (version == null) ? WdmConfig
.getString("wdm.chromeDriverVersion") : version;
return getDriversFromXml(arch, WdmConfig.getUrl("wdm.chromeDriverUrl"),
"chromedriver", driverVersion);
}
@Override
protected String getExportParameter() {
return WdmConfig.getString("wdm.chromeDriverExport");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy