// MouseClickXY is an action that sends a left mouse button click (ie,
// mousePressed and mouseReleased event) to the X, Y location.
MouseClickXY is an action that sends a left mouse button click  to the X, Y location.
// MouseClickXY is an action that sends a left mouse button click ( ie // mousePressed and mouseReleased event ) to the X Y location .
func MouseClickXY(x, y float64, opts ...MouseOption) MouseAction {
	return ActionFunc(func(ctx context.Context) error {
		p := &input.DispatchMouseEventParams{
			Type:       input.MousePressed,
			X:          x,
			Y:          y,
			Button:     input.Left,
			ClickCount: 1,
		}
		for _, o := range opts {
			p = o(p)
		}
		if err := p.Do(ctx); err != nil {
			return err
		}
		p.Type = input.MouseReleased
		return p.Do(ctx)
	})
}
func MouseClickXY ( x , y float64 , opts ... MouseOption ) MouseAction { return ActionFunc ( func ( ctx context . Context ) error { p := & input . DispatchMouseEventParams { Type : input . MousePressed , X : x , Y : y , Button : input . Left , ClickCount : 1 , } for _ , o := range opts { p = o ( p ) } if err := p . Do ( ctx ) ; err != nil { return err } p . Type = input . MouseReleased return p . Do ( ctx ) } ) }
MouseClickXY is an action that sends a left mouse button click  to the X, Y location.
MouseClickXY is an action that sends a left mouse button click to the X Y location .
// apply opts