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

Method setAlertBehavior

javascript/selenium-webdriver/index.js:418–421  ·  view source on GitHub ↗

* Sets the default action to take with an unexpected alert before returning * an error. * * @param {?capabilities.UserPromptHandler} behavior The desired behavior. * @return {!Builder} A self reference. * @see capabilities.Capabilities#setAlertBehavior

(behavior)

Source from the content-addressed store, hash-verified

416 * @see capabilities.Capabilities#setAlertBehavior
417 */
418 setAlertBehavior(behavior) {
419 this.capabilities_.setAlertBehavior(behavior)
420 return this
421 }
422
423 /**
424 * Sets Chrome specific {@linkplain chrome.Options options} for drivers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected