// KeyEventNode is a key action that dispatches a key event on a element node.
KeyEventNode is a key action that dispatches a key event on a element node.
// KeyEventNode is a key action that dispatches a key event on a element node .
func KeyEventNode(n *cdp.Node, keys string, opts ...KeyOption) KeyAction {
	return ActionFunc(func(ctx context.Context) error {
		err := dom.Focus().WithNodeID(n.NodeID).Do(ctx)
		if err != nil {
			return err
		}
		return KeyEvent(keys, opts...).Do(ctx)
	})
}
func KeyEventNode ( n * cdp . Node , keys string , opts ... KeyOption ) KeyAction { return ActionFunc ( func ( ctx context . Context ) error { err := dom . Focus ( ) . WithNodeID ( n . NodeID ) . Do ( ctx ) if err != nil { return err } return KeyEvent ( keys , opts ... ) . Do ( ctx ) } ) }
KeyEventNode is a key action that dispatches a key event on a element node.
KeyEventNode is a key action that dispatches a key event on a element node .