io.github.bonigarcia.wdm.InternetExplorerDriverManager 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.MalformedURLException;
import java.net.URL;
import java.util.List;
/**
* Manager for Internet Explorer.
*
* @author Boni Garcia ([email protected])
* @since 1.0.0
*/
public class InternetExplorerDriverManager extends BrowserManager {
private static InternetExplorerDriverManager instance;
protected InternetExplorerDriverManager() {
}
public static synchronized InternetExplorerDriverManager getInstance() {
if (instance == null) {
instance = new InternetExplorerDriverManager();
}
return instance;
}
@Override
protected List getDrivers(String version) throws Exception {
return getDriversFromXml(WdmConfig.getUrl("wdm.internetExplorerDriverUrl"), getDriverName());
}
@Override
protected String getExportParameter() {
return WdmConfig.getString("wdm.internetExplorerExport");
}
@Override
protected String getDriverVersion() {
return WdmConfig.getString("wdm.internetExplorerVersion");
}
@Override
protected URL getDriverUrl() throws MalformedURLException {
return WdmConfig.getUrl("wdm.internetExplorerDriverUrl");
}
@Override
protected String getDriverName() {
return "IEDriverServer";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy