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

Method click

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

* Short-hand for performing a simple left-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

885 * @return {!Actions} a self reference.
886 */
887 click(element) {
888 if (element) {
889 this.move({ origin: element })
890 }
891 return this.press().release()
892 }
893
894 /**
895 * Short-hand for performing a simple right-click (down/up) with the mouse.

Callers 2

sendKeysMethod · 0.95
doubleClickMethod · 0.95

Calls 3

moveMethod · 0.95
pressMethod · 0.95
releaseMethod · 0.45

Tested by

no test coverage detected