* 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)
| 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. |
no test coverage detected