From 88ce56045c9a247643f12913969069c40e7a8c69 Mon Sep 17 00:00:00 2001 From: John Ferguson Smart Date: Sun, 19 May 2024 09:52:34 +0100 Subject: [PATCH] Updated dependency versions including Selenium 4.21.0 --- pom.xml | 14 +++++++------- .../core/plugin/SerenityReporterParallel.java | 10 ++++++++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 34055516a..c073fcaa6 100644 --- a/pom.xml +++ b/pom.xml @@ -43,7 +43,7 @@ 4.13.2 4.0.13 2.4-M1-groovy-4.0 - 1.14.14 + 1.14.15 33.1.0-jre 2.2 2.0.9 @@ -63,8 +63,8 @@ 3.10.0 1.16.1 2.3.32 - 4.20.0 - 4.20.0 + 4.21.0 + 4.21.0 1.5.1 1.15.4 2.12.7 @@ -76,11 +76,11 @@ 2.3.32 9.2.2 0.10.2 - 4.0.0 + 4.1.0 2.0.235 1.1.6 - 5.3.29 - 2.7.14 + 6.1.7 + 3.2.5 1.3.0 4.8.3 1.10.12 @@ -92,7 +92,7 @@ 3.5.2 3.10.8 - 1.9.23 + 1.9.24 11 diff --git a/serenity-cucumber/src/main/java/io/cucumber/core/plugin/SerenityReporterParallel.java b/serenity-cucumber/src/main/java/io/cucumber/core/plugin/SerenityReporterParallel.java index 09602529c..8b2bdef65 100644 --- a/serenity-cucumber/src/main/java/io/cucumber/core/plugin/SerenityReporterParallel.java +++ b/serenity-cucumber/src/main/java/io/cucumber/core/plugin/SerenityReporterParallel.java @@ -784,7 +784,10 @@ private void startScenario(String scenarioId, URI featurePath, TestCase testCase LOGGER.debug("SRP:startScenario" + " " + featurePath + " " + Thread.currentThread() + " " + testCase.getId() + " at line " + testCase.getLocation().getLine()); - reinitializeRemoteWebDriver(); + RestartBrowserForEach restartBrowserForEach = RestartBrowserForEach.configuredIn(SerenityInfrastructure.getEnvironmentVariables()); + if (restartBrowserForEach.restartBrowserForANew(RestartBrowserForEach.SCENARIO)) { + reinitializeRemoteWebDriver(); + } context.addHighPriorityStepEventBusEvent(scenarioId, new TestStartedEvent(scenarioId, @@ -923,7 +926,10 @@ private void startProcessingExampleLine(String scenarioId, URI featurePath, Test getContext(featurePath).addStepEventBusEvent( new ClearStepFailuresEvent()); - reinitializeRemoteWebDriver(); + RestartBrowserForEach restartBrowserForEach = RestartBrowserForEach.configuredIn(SerenityInfrastructure.getEnvironmentVariables()); + if (restartBrowserForEach.restartBrowserForANew(RestartBrowserForEach.EXAMPLE)) { + reinitializeRemoteWebDriver(); + } getContext(featurePath).addStepEventBusEvent( new ExampleStartedEvent(data, scenarioName));