List of usage examples for org.openqa.selenium.remote BrowserType IEXPLORE
String IEXPLORE
To view the source code for org.openqa.selenium.remote BrowserType IEXPLORE.
Click Source Link
From source file:org.musetest.selenium.providers.IExploreDriverProvider.java
License:Open Source License
@Override public WebDriver getDriver(SeleniumBrowserCapabilities capabilities, MuseExecutionContext context) { if (getOs() != null && !(OperatingSystem.get().equals(getOs()))) return null; // this provider is not for the current OS if (!capabilities.getName().equals(BrowserType.IEXPLORE)) return null; File path = getDriverLocation(context); if (path == null) { context.raiseEvent(MessageEventType.create( "IExploreDriverProvider would try to satisfy request for Internet Explorer browser, but it was not configured with a path to the driver")); return null; }/* www. ja v a 2 s.co m*/ if (!(path.exists())) { context.raiseEvent(MessageEventType.create( "IExploreDriverProvider would try to satisfy request for Internet Explorer browser, but the configured path does not exist: " + path.getAbsolutePath())); return null; } synchronized (IExploreDriverProvider.class) { System.setProperty("webdriver.ie.driver", path.getAbsolutePath()); return new InternetExplorerDriver(capabilities.toDesiredCapabilities()); } }