/** * Should not be called by paxml. */ void close() { errorClosing = false; if (log.isDebugEnabled()) { log.debug("Attempt to close selenium"); } if (initialized) { if (log.isDebugEnabled()) { log.debug("Closing selenium"); } try { selenium.close(); } catch (Exception e) { errorClosing = true; log.warn("Error closing selenium", e); } } }
public void destroyInstance(DefaultSelenium instance) { instance.close(); instance.stop(); }
/** * Should not be called by paxml. */ void close() { errorClosing = false; if (log.isDebugEnabled()) { log.debug("Attempt to close selenium"); } if (initialized) { if (log.isDebugEnabled()) { log.debug("Closing selenium"); } try { selenium.close(); } catch (Exception e) { errorClosing = true; log.warn("Error closing selenium", e); } } }
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); } }
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); } }