Exemple #1
0
 /// <summary>
 /// Performs a context-click (right click) on an element.
 /// </summary>
 /// <param name="element"> The element to context-click. If None, clicks on current mouse position.</param>
 /// <returns>Self</returns>
 public Actions ClickContext(WebElement element = null)
 {
     _actions.Add(() => act_click_context(element));
     return(this);
 }
Exemple #2
0
 /// <summary>
 /// Double-clicks an element.
 /// </summary>
 /// <param name="element">The element to double-click. If None, clicks on current mouse position.</param>
 /// <returns>Self</returns>
 public Actions ClickDouble(WebElement element = null)
 {
     _actions.Add(() => act_click_double(element));
     return(this);
 }
Exemple #3
0
 /// <summary>
 /// Holds down the left mouse button on an element.
 /// </summary>
 /// <param name="element">The element to mouse down. If None, clicks on current mouse position.</param>
 /// <returns>Self</returns>
 public Actions ClickAndHold(WebElement element = null)
 {
     _actions.Add(() => act_mouse_press(element));
     return(this);
 }