Delete unused cssEscape method.
@@ -408,14 +408,6 @@ protected void setFoundBy(SearchContext context, WebElement element, String by,
return allElements;
}
- static String cssEscape(String using) {
- using = using.replaceAll("(['\"\\\\#.:;,!?+<>=~*^$|%&@`{}\\-\\/\\[\\]\\(\\)])", "\\\\$1");
- if (using.length() > 0 && Character.isDigit(using.charAt(0))) {
- using = "\\" + Integer.toString(30 + Integer.parseInt(using.substring(0,1))) + " " + using.substring(1);
- }
- return using;
- }
-
public WebElement findElementById(String using) {
return findElement("id", using);
}
