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

Method getText

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

* Retrieves the message text displayed with this alert. For instance, if the * alert were opened with alert("hello"), then this would return "hello". * * @return {!Promise } A promise that will be * resolved to the text displayed with this alert.

()

Source from the content-addressed store, hash-verified

3417 * resolved to the text displayed with this alert.
3418 */
3419 getText() {
3420 return this.text_
3421 }
3422
3423 /**
3424 * Accepts this alert.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected