def METHOD_NAME(
    self,
    locator: Optional[LocatorType] = None,
    action: Action = Action.METHOD_NAME,
) -> None:
    """Click at the element indicated by locator.
    :param locator: Locator for click position
    :param action:  Click action, e.g. right click
    Example:
    .. code-block:: robotframework
        Click
        Click    LoginForm.Button
        Click    coordinates:500,200    triple click
    """
    if self._error:
        raise self._error
    action = to_action(action)
    if locator:
        match = self.ctx.wait_for_element(locator)
        self._click(action, match)
    else:
        self._click(action)