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

Method sendKeys

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

* Sets the response text on this alert. This command will return an error if * the underlying alert does not support response text (e.g. window.alert and * window.confirm). * * @param {string} text The text to set. * @return {!Promise } A promise that will be resolved * wh

(text)

Source from the content-addressed store, hash-verified

3450 * when this command has completed.
3451 */
3452 sendKeys(text) {
3453 return this.driver_.execute(new command.Command(command.Name.SET_ALERT_TEXT).setParameter('text', text))
3454 }
3455}
3456
3457/**

Callers

nothing calls this directly

Calls 2

setParameterMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected