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

Method contextClick

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

* Short-hand for performing a simple right-click (down/up) with the mouse. * * @param {./webdriver.WebElement=} element If specified, the mouse will * first be moved to the center of the element before performing the * click. * @return {!Actions} a self reference.

(element)

Source from the content-addressed store, hash-verified

900 * @return {!Actions} a self reference.
901 */
902 contextClick(element) {
903 if (element) {
904 this.move({ origin: element })
905 }
906 return this.press(Button.RIGHT).release(Button.RIGHT)
907 }
908
909 /**
910 * Short-hand for performing a double left-click with the mouse.

Callers

nothing calls this directly

Calls 3

moveMethod · 0.95
pressMethod · 0.95
releaseMethod · 0.45

Tested by

no test coverage detected