Repository: tapestry-5 Updated Branches: refs/heads/master 91c4c7c5c -> a147df916
properly shut down webdriver instance Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/a147df91 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/a147df91 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/a147df91 Branch: refs/heads/master Commit: a147df916d7f0bd9c3a274f28b93274c90ba52e2 Parents: 91c4c7c Author: Jochen Kemnade <[email protected]> Authored: Thu Nov 2 12:07:46 2017 +0100 Committer: Jochen Kemnade <[email protected]> Committed: Thu Nov 2 12:07:46 2017 +0100 ---------------------------------------------------------------------- .../java/org/apache/tapestry5/test/SeleniumTestCase.java | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/a147df91/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java ---------------------------------------------------------------------- diff --git a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java index 9701d30..5bca70b 100644 --- a/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java +++ b/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java @@ -259,6 +259,16 @@ public abstract class SeleniumTestCase extends Assert implements Selenium LOGGER.error("Selenium client shutdown failure.", e); } + LOGGER.info("Shutting down webdriver ..."); + + try + { + webDriver.close(); + } catch (RuntimeException e) + { + LOGGER.error("Webdriver shutdown failure.", e); + } + LOGGER.info("Shutting down selenium server ..."); LOGGER.info("Shutting web server ...");
