public void stopSelenium() { DefaultSelenium selenium = getSelenium(); if (selenium != null) { selenium.stop(); state = State.STOPPED; } }
public void destroyInstance(DefaultSelenium instance) { instance.close(); instance.stop(); }
public void terminate() { if (terminated) { return; } try { selenium.close(); } catch (Exception e) { log.error("Error closing selenium", e); } finally { try { selenium.stop(); } catch (Exception e) { log.error("Error stopping selenium", e); } } terminated = true; if (log.isInfoEnabled()) { log.info("Selenium session terminated: " + this); } }
/** * Should not be called by paxml. */ void stop() { if (errorClosing) { if (log.isWarnEnabled()) { log.warn("Skipping stopping selenium due to error in closing"); } return; } if (log.isDebugEnabled()) { log.debug("Attempt to stop selenium"); } if (initialized) { initialized = false; if (log.isDebugEnabled()) { log.debug("Stopping selenium"); } try { selenium.stop(); } catch (Exception e) { log.warn("Error stopping selenium", e); } } }
/** * Should not be called by paxml. */ void stop() { if (errorClosing) { if (log.isWarnEnabled()) { log.warn("Skipping stopping selenium due to error in closing"); } return; } if (log.isDebugEnabled()) { log.debug("Attempt to stop selenium"); } if (initialized) { initialized = false; if (log.isDebugEnabled()) { log.debug("Stopping selenium"); } try { selenium.stop(); } catch (Exception e) { log.warn("Error stopping selenium", e); } } }
public void terminate() { if (terminated) { return; } try { selenium.close(); } catch (Exception e) { log.warn("Error closing selenium", e); } finally { try { selenium.stop(); } catch (Exception e) { log.warn("Error stopping selenium", e); } finally { try { if (seleniumServer != null && seleniumServer.getServer().isStarted()) { seleniumServer.stop(); } } catch (Exception e) { log.warn("Error stopping selenium server", e); } } } terminated = true; if (log.isInfoEnabled()) { log.info("Selenium session terminated: " + this); } }
selenium.stop();