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

Method getText

java/src/org/openqa/selenium/WebElement.java:226–226  ·  view source on GitHub ↗

Get the visible (i.e. not hidden by CSS) text of this element, including sub-elements. See W3C WebDriver specification for more details. @return The visible text of this element.

()

Source from the content-addressed store, hash-verified

224 * @return The visible text of this element.
225 */
226 String getText();
227
228 /**
229 * Find all elements within the current context using the given mechanism. When using xpath be

Implementers 2

RemoteWebElementjava/src/org/openqa/selenium/remote/Re
WrappedWebElementjava/test/org/openqa/selenium/WrappedW

Calls

no outgoing calls