summaryrefslogtreecommitdiffstats
path: root/integration-tests/src/test/java/org
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-04-01 12:18:09 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2021-04-06 09:08:52 +0000
commit0a1f233687c98d6574494681e123d44cc49596a5 (patch)
tree9de9fb0e0528534438d7847f5fce570645271e40 /integration-tests/src/test/java/org
parent24494466f8756d654a023b38f5ad73ec0ec2d603 (diff)
Handle intermittent RemoteWebDriver error
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ibf5518fbaa3a2c78f2403664083320bf7fa91599 Issue-ID: SDC-3542
Diffstat (limited to 'integration-tests/src/test/java/org')
-rw-r--r--integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/execute/setup/WebDriverThread.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/execute/setup/WebDriverThread.java b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/execute/setup/WebDriverThread.java
index a24c21dab8..eae11989fb 100644
--- a/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/execute/setup/WebDriverThread.java
+++ b/integration-tests/src/test/java/org/onap/sdc/frontend/ci/tests/execute/setup/WebDriverThread.java
@@ -54,8 +54,13 @@ public class WebDriverThread {
void quitDriver() {
if (webdriver != null) {
- webdriver.quit();
- webdriver = null;
+ try {
+ webdriver.quit();
+ } catch (final Exception e) {
+ LOGGER.warn("Failed to QUIT webDriver", e);
+ } finally {
+ webdriver = null;
+ }
}
}
@@ -77,7 +82,7 @@ public class WebDriverThread {
}
final RemoteWebDriver remoteWebDriver = new RemoteWebDriver(remoteUrl, firefoxOptions);
remoteWebDriver.setFileDetector(new LocalFileDetector());
- remoteWebDriver.manage().window().setSize(new Dimension(1920,1440));
+ remoteWebDriver.manage().window().setSize(new Dimension(1920, 1440));
webdriver = remoteWebDriver;
} else {