MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getValueText

Method getValueText

java/test/org/openqa/selenium/TypingTest.java:43–46  ·  view source on GitHub ↗
(WebElement el)

Source from the content-addressed store, hash-verified

41 }
42
43 private static String getValueText(WebElement el) {
44 // Standardize on \n and strip any trailing whitespace.
45 return el.getAttribute("value").replace("\r\n", "\n").trim();
46 }
47
48 private Keys primaryModifier() {
49 return (getEffectivePlatform(driver).is(Platform.MAC)) ? Keys.COMMAND : Keys.CONTROL;

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected