* 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)
| 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. |