diff --git a/src/main/java/aquality/selenium/core/visualization/DumpManager.java b/src/main/java/aquality/selenium/core/visualization/DumpManager.java index 369bcce..83d4c28 100644 --- a/src/main/java/aquality/selenium/core/visualization/DumpManager.java +++ b/src/main/java/aquality/selenium/core/visualization/DumpManager.java @@ -14,7 +14,7 @@ import java.util.stream.Collectors; public class DumpManager implements IDumpManager { - private static final String INVALID_CHARS_REGEX = "[\\\\/|\\\\\\\\|\\\\*|\\\\:|\\\\||\\\"|\\'|\\\\<|\\\\>|\\\\{|\\\\}|\\\\?|\\\\%|,]"; + private static final String INVALID_CHARS_REGEX = "[\\\\/|*:\"'<>{}?%,]"; private final Map elementsForVisualization; private final String formName; diff --git a/src/test/java/tests/applications/browser/ChromeApplication.java b/src/test/java/tests/applications/browser/ChromeApplication.java index 8e078d0..5ab87be 100644 --- a/src/test/java/tests/applications/browser/ChromeApplication.java +++ b/src/test/java/tests/applications/browser/ChromeApplication.java @@ -12,7 +12,7 @@ public class ChromeApplication implements IApplication { private final RemoteWebDriver driver; ChromeApplication(long implicitWaitSeconds) { - driver = new ChromeDriver(new ChromeOptions().addArguments("--headless").addArguments("--remote-allow-origins=*")); + driver = new ChromeDriver(new ChromeOptions().addArguments("--headless", "--remote-allow-origins=*")); setImplicitWaitTimeout(Duration.ofSeconds(implicitWaitSeconds)); }