@Override public boolean isAvailable() { try { InternetExplorerDriverService.createDefaultService(); return true; } catch (IllegalStateException | WebDriverException e) { return false; } }
/** * Get the InternetExplorerDriverService to use. Exists to allow subclasses * to override. * * @return the default Internet Explorer service. */ public InternetExplorerDriverService getInternetExplorerDriverService() { return InternetExplorerDriverService.createDefaultService(); }
@Override public InternetExplorerDriverService getDriverService() { return InternetExplorerDriverService.createDefaultService(); }
public Browser createBrowser(int port) { InternetExplorerDriverService service = InternetExplorerDriverService.createDefaultService(); DesiredCapabilities capabilities = getDefaultCapabilities(); return createBrowser(new InternetExplorerDriver(service, capabilities, port)); }