Skip to content

Commit 53983fa

Browse files
committed
Update invalid chars regex
1 parent 8a66a1a commit 53983fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/aquality/selenium/core/visualization/DumpManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import java.util.stream.Collectors;
1515

1616
public class DumpManager<T extends IElement> implements IDumpManager {
17-
private static final String INVALID_CHARS_REGEX = "[\\\\/|\\\\\\\\|\\\\*|\\\\:|\\\\||\\\"|\\'|\\\\<|\\\\>|\\\\{|\\\\}|\\\\?|\\\\%|,]";
17+
private static final String INVALID_CHARS_REGEX = "[\\\\/|*:\"'<>{}?%,]";
1818

1919
private final Map<String, T> elementsForVisualization;
2020
private final String formName;

src/test/java/tests/applications/browser/ChromeApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ChromeApplication implements IApplication {
1212
private final RemoteWebDriver driver;
1313

1414
ChromeApplication(long implicitWaitSeconds) {
15-
driver = new ChromeDriver(new ChromeOptions().addArguments("--headless").addArguments("--remote-allow-origins=*"));
15+
driver = new ChromeDriver(new ChromeOptions().addArguments("--headless", "--remote-allow-origins=*"));
1616
setImplicitWaitTimeout(Duration.ofSeconds(implicitWaitSeconds));
1717
}
1818

0 commit comments

Comments
 (0)