MCPcopy
hub / github.com/SeleniumHQ/selenium / cssEscape

Method cssEscape

java/src/org/openqa/selenium/By.java:449–455  ·  view source on GitHub ↗
(String using)

Source from the content-addressed store, hash-verified

447 }
448
449 private String cssEscape(String using) {
450 using = CSS_ESCAPE.matcher(using).replaceAll("\\\\$1");
451 if (!using.isEmpty() && Character.isDigit(using.charAt(0))) {
452 using = "\\" + (30 + Integer.parseInt(using.substring(0, 1))) + " " + using.substring(1);
453 }
454 return using;
455 }
456 }
457}

Callers 1

PreW3CLocatorMethod · 0.95

Calls 2

charAtMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected