Skip to content

Commit 57b35b0

Browse files
committed
More backslashes, Java likes them so much!
1 parent 37f2173 commit 57b35b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ protected List<WebElement> findElements(String by, String using) {
390390
}
391391

392392
static String cssEscape(String using) {
393-
using = using.replaceAll("(['\"\\\\#.:;,!?+<>=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])", "\\$1");
393+
using = using.replaceAll("(['\"\\\\#.:;,!?+<>=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])", "\\\\$1");
394394
if (using.length() > 0 && Character.isDigit(using.charAt(0))) {
395395
using = "\\" + Integer.toString(30 + Integer.parseInt(using.substring(0,1))) + " " + using.substring(1);
396396
}

0 commit comments

Comments
 (0)