/** * Get the InternetExplorerDriverService to use. Exists to allow subclasses * to override. * * @return the default Internet Explorer service. */ public InternetExplorerDriverService getInternetExplorerDriverService() { return InternetExplorerDriverService.createDefaultService(); }
@Override protected InternetExplorerDriverService createDriverService(File exe, int port, ImmutableList<String> args, ImmutableMap<String, String> environment) { try { return new InternetExplorerDriverService(exe, port, args, environment); } catch (IOException e) { throw new WebDriverException(e); } } }
private InternetExplorerDriverService getThreadService() { InternetExplorerDriverService service = services.get(currentThreadName()); if (service != null) { return service; } try { service = new InternetExplorerDriverService.Builder().usingDriverExecutable(new File(getInternetExplorerDriverPath())).build(); service.start(); services.put(currentThreadName(), service); } catch (IOException e) { LOGGER.error("Failed to start chrome service"); service = null; } return service; } }
@Override public InternetExplorerDriverService getDriverService() { return InternetExplorerDriverService.createDefaultService(); }
@Override public boolean isAvailable() { try { InternetExplorerDriverService.createDefaultService(); return true; } catch (IllegalStateException | WebDriverException e) { return false; } }
public Browser createBrowser(int port) { InternetExplorerDriverService service = InternetExplorerDriverService.createDefaultService(); DesiredCapabilities capabilities = getDefaultCapabilities(); return createBrowser(new InternetExplorerDriver(service, capabilities, port)); }