MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getText

Method getText

javascript/selenium-webdriver/lib/webdriver.js:2908–2910  ·  view source on GitHub ↗

* Get the visible (i.e. not hidden by CSS) innerText of this element, * including sub-elements, without any leading or trailing whitespace. * * @return {!Promise } A promise that will be * resolved with the element's visible text.

()

Source from the content-addressed store, hash-verified

2906 * resolved with the element's visible text.
2907 */
2908 getText() {
2909 return this.execute_(new command.Command(command.Name.GET_ELEMENT_TEXT))
2910 }
2911
2912 /**
2913 * Get the computed WAI-ARIA role of element.

Callers

nothing calls this directly

Calls 1

execute_Method · 0.95

Tested by

no test coverage detected