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

Method constructor

javascript/selenium-webdriver/lib/input.js:590–612  ·  view source on GitHub ↗

* @param {!Executor} executor The object to execute the configured * actions with. * @param {{async: (boolean|undefined)}} options Options for this action * sequence (see class description for details).

(executor, { async = false } = {})

Source from the content-addressed store, hash-verified

588 * sequence (see class description for details).
589 */
590 constructor(executor, { async = false } = {}) {
591 /** @private @const */
592 this.executor_ = executor
593
594 /** @private @const */
595 this.sync_ = !async
596
597 /** @private @const */
598 this.keyboard_ = new Keyboard('default keyboard')
599
600 /** @private @const */
601 this.mouse_ = new Pointer('default mouse', Pointer.Type.MOUSE)
602
603 /** @private @const */
604 this.wheel_ = new Wheel('default wheel')
605
606 /** @private @const {!Map<!Device, !Array<!Action>>} */
607 this.sequences_ = new Map([
608 [this.keyboard_, []],
609 [this.mouse_, []],
610 [this.wheel_, []],
611 ])
612 }
613
614 /** @return {!Keyboard} the keyboard device handle. */
615 keyboard() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected