double_click

def double_click(
self,
mouse_button: Literal["left", "middle", "right"] = MouseButton.Left,
mouse_location: MouseLocation = MouseLocation(),
by: Union[Literal["default", "mouse-emulation", "control-invocation"], MouseActionBy] = MouseActionBy.Default,
modifier_key: Literal["nonekey", "alt", "ctrl", "shift","win"] = ModifierKey.NoneKey,
timeout: int = 30
) -> None

Double click the target element.

Parameters:
mouse_button: MouseButton
   The available values are: ‘left’, ‘right’ and ‘center’, default is ‘left’.
mouse_location: MouseLocation
   MouseLocation is set to define the element position to click. Default position is center of element.
by: MouseActionBy
   Defines the method to click the UI element.
   mouse-emulation: click the target UI element by simulating mouse.
   control-invocation: click the target UI element by invoking its UI method. It may not be supported if it is a Windows desktop element.
   default: automatically choose method per element type. For Web element, use control-invocation; for Window element, use mouse-emulation.
modifier_key: ModifierKey
   The modifier key(“alt”, “ctrl”, “shift”, “win”) to be pressed along with click, and default is none.
timeout: int
   Timeout for the operation, the unit is second, and the default value is 30 seconds.

Returns:
 None

Example:


from clicknium import clicknium as cc, locator, ui

cc.find_element(locator.chrome.bing.svg).double_click(mouse_button = "left")
ui(locator.chrome.bing.svg).double_click(mouse_button = "left")
What are your feelings
Updated on 29 August 2023