High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
feat: forward held modifiers through the screencast pointer path
Luigi Agosti52d07595b194
diff --git a/dashboard/src/components/screencast/useScreencastInput.test.ts b/dashboard/src/components/screencast/useScreencastInput.test.tsnew file mode 100644index 00000000..dd334cc3--- /dev/null+++ b/dashboard/src/components/screencast/useScreencastInput.test.ts@@ -0,0 +1,122 @@+import { renderHook } from "@testing-library/react";+import { beforeEach, describe, expect, it, vi } from "vitest";+import type { RefObject } from "react";+import * as api from "../../services/api";+import { useScreencastInput } from "./useScreencastInput";++function makeCanvasRef(): RefObject<HTMLCanvasElement> {+ const canvas = document.createElement("canvas");+ canvas.width = 800;+ canvas.height = 600;+ vi.spyOn(canvas, "getBoundingClientRect").mockReturnValue({+ left: 0,+ top: 0,+ width: 400,+ height: 300,+ right: 400,+ bottom: 300,+ x: 0,+ y: 0,+ toJSON: () => ({}),+ } as DOMRect);+ return { current: canvas };+}++function renderInput() {+ const canvasRef = makeCanvasRef();+ const { result } = renderHook(() =>+ useScreencastInput({ canvasRef, tabId: "tab_1", status: "streaming" }),+ );+ return result;+}++describe("useScreencastInput modifiers", () => {+ beforeEach(() => {+ vi.clearAllMocks();+ });++ it("forwards the Shift modifier (bitmask 8) on click", async () => {+ const sendAction = vi.spyOn(api, "sendAction").mockResolvedValue(undefined);+ const result = renderInput();++ await result.current.handleCanvasClick({+ clientX: 100,+ clientY: 75,+ altKey: false,+ ctrlKey: false,+ metaKey: false,+ shiftKey: true,+ } as React.MouseEvent<HTMLCanvasElement>);++ expect(sendAction).toHaveBeenCalledWith(+ expect.objectContaining({+ kind: "click",+ // (100 / 400) * 800, (75 / 300) * 600 → frame-pixel coords+ x: 200,+ y: 150,+ hasXY: true,+ modifiers: 8,+ }),+ );+ });++ it("combines Cmd+Shift into the bitmask (4 | 8 = 12) on click", async () => {+ const sendAction = vi.spyOn(api, "sendAction").mockResolvedValue(undefined);+ const result = renderInput();++ await result.current.handleCanvasClick({+ clientX: 0,+ clientY: 0,+ altKey: false,+ ctrlKey: false,+ metaKey: true,+ shiftKey: true,+ } as React.MouseEvent<HTMLCanvasElement>);++ expect(sendAction).toHaveBeenCalledWith(+ expect.objectContaining({ kind: "click", modifiers: 12 }),+ );+ });++ it("sends modifiers: 0 for a plain click", async () => {+ const sendAction = vi.spyOn(api, "sendAction").mockResolvedValue(undefined);+ const result = renderInput();++ await result.current.handleCanvasClick({+ clientX: 10,+ clientY: 10,+ altKey: false,+ ctrlKey: false,+ metaKey: false,+ shiftKey: false,+ } as React.MouseEvent<HTMLCanvasElement>);++ expect(sendAction).toHaveBeenCalledWith(+ expect.objectContaining({ kind: "click", modifiers: 0 }),+ );+ });++ it("forwards modifiers on wheel/scroll", async () => {+ const sendAction = vi.spyOn(api, "sendAction").mockResolvedValue(undefined);+ const result = renderInput();++ await result.current.handleCanvasWheel({+ clientX: 100,+ clientY: 75,+ deltaY: 120,+ altKey: false,+ ctrlKey: true,+ metaKey: false,+ shiftKey: false,+ preventDefault: () => {},+ } as unknown as React.WheelEvent<HTMLCanvasElement>);++ expect(sendAction).toHaveBeenCalledWith(+ expect.objectContaining({+ kind: "scroll",+ scrollY: 120,+ modifiers: 2,+ }),+ );+ });+});diff --git a/dashboard/src/components/screencast/useScreencastInput.ts b/dashboard/src/components/screencast/useScreencastInput.tsindex ed23e73f..fb69a8f0 100644--- a/dashboard/src/components/screencast/useScreencastInput.ts+++ b/dashboard/src/components/screencast/useScreencastInput.ts@@ -9,6 +9,23 @@ interface UseScreencastInputArgs {status: ScreencastStatus;}+// CDP modifier bitmask: Alt=1, Ctrl=2, Meta=4, Shift=8. Shared by the keyboard+// and pointer paths so held-modifier gestures (Shift+click, Cmd/Ctrl+click,+// Ctrl+C) reach the page with the same encoding.+function modifierBitmask(e: {+ altKey: boolean;+ ctrlKey: boolean;+ metaKey: boolean;+ shiftKey: boolean;+}): number {+ return (+ (e.altKey ? 1 : 0) |+ (e.ctrlKey ? 2 : 0) |+ (e.metaKey ? 4 : 0) |+ (e.shiftKey ? 8 : 0)+ );+}+export function useScreencastInput({canvasRef,tabId,@@ -47,6 +64,7 @@ export function useScreencastInput({hasXY: true,frameW: coords.frameW,frameH: coords.frameH,+ modifiers: modifierBitmask(e),});} catch (err) {console.error("click failed", err);@@ -69,6 +87,7 @@ export function useScreencastInput({scrollY: Math.round(e.deltaY),frameW: coords.frameW,frameH: coords.frameH,+ modifiers: modifierBitmask(e),});} catch (err) {console.error("scroll failed", err);@@ -95,13 +114,9 @@ export function useScreencastInput({return;}e.preventDefault();- // CDP modifier bitmask: Alt=1, Ctrl=2, Meta=4, Shift=8. Forwarded with- // `press` so keyboard chords (Ctrl+C, Cmd+A, Shift+Arrow) reach the page.- const modifiers =- (e.altKey ? 1 : 0) |- (e.ctrlKey ? 2 : 0) |- (e.metaKey ? 4 : 0) |- (e.shiftKey ? 8 : 0);+ // Forwarded with `press` so keyboard chords (Ctrl+C, Cmd+A, Shift+Arrow)+ // reach the page.+ const modifiers = modifierBitmask(e);try {if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) {// Printable character with no command modifier (Shift-for-caps isdiff --git a/internal/bridge/action_pointer.go b/internal/bridge/action_pointer.goindex e0c1f01f..f673d92b 100644--- a/internal/bridge/action_pointer.go+++ b/internal/bridge/action_pointer.go@@ -16,6 +16,7 @@ var scrollByCoordinateAction = ScrollByCoordinatevar mouseMoveByCoordinateAction = MouseMoveByCoordinatevar mouseDownByCoordinateAction = MouseDownByCoordinatevar mouseUpByCoordinateAction = MouseUpByCoordinate+var clickByCoordinateAction = ClickByCoordinatevar clickElementAction = ClickElementvar clickByNodeIDAction = ClickByNodeIDvar jsClickByBackendNodeAction = JSClickByBackendNode@@ -301,7 +302,7 @@ func (b *Bridge) actionClick(ctx context.Context, req ActionRequest) (result map}err = clickByNodeIDWithMode(clickCtx, req.NodeID, req.Mode)} else if req.HasXY {- err = ClickByCoordinate(clickCtx, req.X, req.Y)+ err = clickByCoordinateAction(clickCtx, req.X, req.Y, req.Modifiers)} else {resultCh <- clickResult{err: fmt.Errorf("need selector, ref, nodeId, or x/y coordinates")}return@@ -489,7 +490,7 @@ func (b *Bridge) actionMouseDown(ctx context.Context, req ActionRequest) (map[stif button == "" {button = "left"}- if err := mouseDownByCoordinateAction(ctx, x, y, button); err != nil {+ if err := mouseDownByCoordinateAction(ctx, x, y, button, req.Modifiers); err != nil {return nil, err}b.rememberPointerPosition(req.TabID, x, y)@@ -505,7 +506,7 @@ func (b *Bridge) actionMouseUp(ctx context.Context, req ActionRequest) (map[striif button == "" {button = "left"}- if err := mouseUpByCoordinateAction(ctx, x, y, button); err != nil {+ if err := mouseUpByCoordinateAction(ctx, x, y, button, req.Modifiers); err != nil {return nil, err}b.rememberPointerPosition(req.TabID, x, y)@@ -532,7 +533,7 @@ func (b *Bridge) actionMouseWheel(ctx context.Context, req ActionRequest) (map[sif deltaX == 0 && deltaY == 0 {deltaY = 120}- if err := scrollByCoordinateAction(ctx, x, y, deltaX, deltaY); err != nil {+ if err := scrollByCoordinateAction(ctx, x, y, deltaX, deltaY, req.Modifiers); err != nil {return nil, err}b.rememberPointerPosition(req.TabID, x, y)@@ -578,7 +579,7 @@ func (b *Bridge) actionScroll(ctx context.Context, req ActionRequest) (map[strin"deltaX": scrollX,"deltaY": scrollY,},- scrollByCoordinateAction(ctx, scrollTargetX, scrollTargetY, scrollX, scrollY)+ scrollByCoordinateAction(ctx, scrollTargetX, scrollTargetY, scrollX, scrollY, req.Modifiers)}func (b *Bridge) actionDrag(ctx context.Context, req ActionRequest) (map[string]any, error) {diff --git a/internal/bridge/actions_test.go b/internal/bridge/actions_test.goindex 3c6a45a1..3014904e 100644--- a/internal/bridge/actions_test.go+++ b/internal/bridge/actions_test.go@@ -125,7 +125,7 @@ func TestMouseWheelAction_UsesExplicitWheelDeltas(t *testing.T) {})called := false- scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY int) error {+ scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {called = trueif x != 50 || y != 75 {t.Fatalf("wheel coordinates = (%v, %v), want (50, 75)", x, y)@@ -158,6 +158,66 @@ func TestMouseWheelAction_UsesExplicitWheelDeltas(t *testing.T) {}}+func TestClickAction_ForwardsModifiers(t *testing.T) {+ b := New(context.TODO(), nil, &config.RuntimeConfig{})++ origClick := clickByCoordinateAction+ t.Cleanup(func() { clickByCoordinateAction = origClick })++ var gotModifiers int+ called := false+ clickByCoordinateAction = func(ctx context.Context, x, y float64, modifiers int) error {+ called = true+ gotModifiers = modifiers+ return nil+ }++ // Shift+click from the screencast UI: modifier bitmask 8 must reach the+ // CDP pointer dispatch so the page sees a held Shift.+ if _, err := b.Actions[ActionClick](context.Background(), ActionRequest{+ HasXY: true,+ X: 40,+ Y: 60,+ Modifiers: 8,+ }); err != nil {+ t.Fatalf("click returned error: %v", err)+ }+ if !called {+ t.Fatal("expected coordinate click path to be used")+ }+ if gotModifiers != 8 {+ t.Fatalf("click modifiers = %d, want 8 (Shift)", gotModifiers)+ }+}++func TestMouseWheelAction_ForwardsModifiers(t *testing.T) {+ b := New(context.TODO(), nil, &config.RuntimeConfig{})++ origScroll := scrollByCoordinateAction+ t.Cleanup(func() { scrollByCoordinateAction = origScroll })++ var gotModifiers int+ scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {+ gotModifiers = modifiers+ return nil+ }++ // Shift+wheel (horizontal scroll intent): the bitmask must reach the wheel+ // dispatch.+ if _, err := b.Actions[ActionMouseWheel](context.Background(), ActionRequest{+ HasXY: true,+ X: 10,+ Y: 20,+ DeltaY: 120,+ Modifiers: 8,+ }); err != nil {+ t.Fatalf("mouse wheel returned error: %v", err)+ }+ if gotModifiers != 8 {+ t.Fatalf("wheel modifiers = %d, want 8 (Shift)", gotModifiers)+ }+}+func TestMouseActions_TrackCurrentPointerPosition(t *testing.T) {b := New(context.TODO(), nil, &config.RuntimeConfig{})@@ -177,7 +237,7 @@ func TestMouseActions_TrackCurrentPointerPosition(t *testing.T) {}return nil}- mouseUpByCoordinateAction = func(ctx context.Context, x, y float64, button string) error {+ mouseUpByCoordinateAction = func(ctx context.Context, x, y float64, button string, modifiers int) error {upCalled = trueif x != 15 || y != 25 {t.Fatalf("up coordinates = (%v, %v), want (15, 25)", x, y)@@ -213,7 +273,7 @@ func TestMouseDownAction_UsesTrackedPointerWhenTargetMissing(t *testing.T) {mouseDownByCoordinateAction = origDown})- mouseDownByCoordinateAction = func(ctx context.Context, x, y float64, button string) error {+ mouseDownByCoordinateAction = func(ctx context.Context, x, y float64, button string, modifiers int) error {if x != 33 || y != 44 {t.Fatalf("down coordinates = (%v, %v), want (33, 44)", x, y)}@@ -245,7 +305,7 @@ func TestMouseWheelAction_UsesViewportCenterWhenPointerMissing(t *testing.T) {return 300, 200, nil}called := false- scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY int) error {+ scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {called = trueif x != 300 || y != 200 {t.Fatalf("wheel coordinates = (%v, %v), want (300, 200)", x, y)@@ -660,7 +720,7 @@ func TestScrollAction_UsesCoordinateWheelPath(t *testing.T) {})called := false- scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY int) error {+ scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {called = trueif x != 12.5 || y != 34.5 {t.Fatalf("wheel coordinates = (%v, %v), want (12.5, 34.5)", x, y)@@ -707,7 +767,7 @@ func TestScrollAction_UsesViewportCenterWhenCoordinatesMissing(t *testing.T) {}called := false- scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY int) error {+ scrollByCoordinateAction = func(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {called = trueif x != 400 || y != 300 {t.Fatalf("wheel coordinates = (%v, %v), want (400, 300)", x, y)@@ -746,7 +806,7 @@ func TestScrollAction_PropagatesViewportCenterError(t *testing.T) {scrollViewportCenter = func(context.Context) (float64, float64, error) {return 0, 0, context.Canceled}- scrollByCoordinateAction = func(context.Context, float64, float64, int, int) error {+ scrollByCoordinateAction = func(context.Context, float64, float64, int, int, int) error {t.Fatal("wheel dispatch should not be called when viewport center resolution fails")return nil}diff --git a/internal/bridge/cdp_pointer_test.go b/internal/bridge/cdp_pointer_test.goindex 19859ffe..71956bf7 100644--- a/internal/bridge/cdp_pointer_test.go+++ b/internal/bridge/cdp_pointer_test.go@@ -9,7 +9,7 @@ func TestClickByCoordinate_ContextCancelled(t *testing.T) {ctx, cancel := context.WithCancel(context.Background())cancel()- err := ClickByCoordinate(ctx, 0, 0)+ err := ClickByCoordinate(ctx, 0, 0, 0)if err == nil {t.Fatal("expected error for cancelled context")}@@ -39,7 +39,7 @@ func TestMouseDownByCoordinate_ContextCancelled(t *testing.T) {ctx, cancel := context.WithCancel(context.Background())cancel()- err := MouseDownByCoordinate(ctx, 10, 20, "left")+ err := MouseDownByCoordinate(ctx, 10, 20, "left", 0)if err == nil {t.Fatal("expected error for cancelled context")}@@ -49,7 +49,7 @@ func TestMouseUpByCoordinate_ContextCancelled(t *testing.T) {ctx, cancel := context.WithCancel(context.Background())cancel()- err := MouseUpByCoordinate(ctx, 10, 20, "left")+ err := MouseUpByCoordinate(ctx, 10, 20, "left", 0)if err == nil {t.Fatal("expected error for cancelled context")}@@ -59,7 +59,7 @@ func TestMouseWheelByCoordinate_ContextCancelled(t *testing.T) {ctx, cancel := context.WithCancel(context.Background())cancel()- err := MouseWheelByCoordinate(ctx, 10, 20, 0, 120)+ err := MouseWheelByCoordinate(ctx, 10, 20, 0, 120, 0)if err == nil {t.Fatal("expected error for cancelled context")}@@ -90,7 +90,7 @@ func TestDoubleClickByCoordinate_RejectNegativeCoordinates(t *testing.T) {func TestCoordinateActions_RejectNegativeCoordinates(t *testing.T) {ctx := context.Background()- if err := ClickByCoordinate(ctx, -1, 0); err == nil {+ if err := ClickByCoordinate(ctx, -1, 0, 0); err == nil {t.Fatal("expected click negative coordinate to fail")}if err := HoverByCoordinate(ctx, 0, -1); err == nil {@@ -99,13 +99,13 @@ func TestCoordinateActions_RejectNegativeCoordinates(t *testing.T) {if err := MouseMoveByCoordinate(ctx, -1, 0); err == nil {t.Fatal("expected mouse move negative coordinate to fail")}- if err := MouseDownByCoordinate(ctx, 0, -1, "right"); err == nil {+ if err := MouseDownByCoordinate(ctx, 0, -1, "right", 0); err == nil {t.Fatal("expected mouse down negative coordinate to fail")}- if err := MouseUpByCoordinate(ctx, -1, 0, "middle"); err == nil {+ if err := MouseUpByCoordinate(ctx, -1, 0, "middle", 0); err == nil {t.Fatal("expected mouse up negative coordinate to fail")}- if err := MouseWheelByCoordinate(ctx, 0, -1, 0, 100); err == nil {+ if err := MouseWheelByCoordinate(ctx, 0, -1, 0, 100, 0); err == nil {t.Fatal("expected mouse wheel negative coordinate to fail")}}diff --git a/internal/bridge/cdpops/pointer.go b/internal/bridge/cdpops/pointer.goindex 16a6da33..1fe5296b 100644--- a/internal/bridge/cdpops/pointer.go+++ b/internal/bridge/cdpops/pointer.go@@ -183,7 +183,19 @@ func MouseMoveByCoordinate(ctx context.Context, x, y float64) error {return dispatchMouseMove(ctx, x, y, input.None, 0)}-func MouseDownByCoordinate(ctx context.Context, x, y float64, button string) error {+// Modifiers is the CDP key-modifier bitmask (Alt=1, Ctrl=2, Meta=4, Shift=8)+// held during a pointer dispatch. Input.dispatchMouseEvent accepts this value+// verbatim under "modifiers", enabling gestures like Shift+click and+// Cmd/Ctrl+click. The bits below mirror that encoding for the JS WheelEvent+// path, which needs booleans instead.+const (+ modAlt = 1+ modCtrl = 2+ modMeta = 4+ modShift = 8+)++func MouseDownByCoordinate(ctx context.Context, x, y float64, button string, modifiers int) error {if err := validatePointerCoordinates(x, y); err != nil {return err}@@ -191,12 +203,13 @@ func MouseDownByCoordinate(ctx context.Context, x, y float64, button string) err"type": "mousePressed","button": normalizeMouseButton(button),"clickCount": 1,+ "modifiers": modifiers,"x": x,"y": y,})}-func MouseUpByCoordinate(ctx context.Context, x, y float64, button string) error {+func MouseUpByCoordinate(ctx context.Context, x, y float64, button string, modifiers int) error {if err := validatePointerCoordinates(x, y); err != nil {return err}@@ -204,12 +217,13 @@ func MouseUpByCoordinate(ctx context.Context, x, y float64, button string) error"type": "mouseReleased","button": normalizeMouseButton(button),"clickCount": 1,+ "modifiers": modifiers,"x": x,"y": y,})}-func MouseWheelByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY int) error {+func MouseWheelByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {if err := validatePointerCoordinates(x, y); err != nil {return err}@@ -218,30 +232,34 @@ func MouseWheelByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY in// longer reliably fires `wheel` JS listeners and can stall on the// compositor ack chain. Dispatch a real WheelEvent at the point under// the cursor so listeners run, then scroll the window if no listener- // called preventDefault().+ // called preventDefault(). Held modifiers (Shift for horizontal scroll,+ // Ctrl for zoom intent) are reflected on the event init.expr := fmt.Sprintf(`(function() {var dx = %d, dy = %d, cx = %f, cy = %f;var target = document.elementFromPoint(cx, cy) || document.documentElement;var ev = new WheelEvent('wheel', {deltaX: dx, deltaY: dy,clientX: cx, clientY: cy,+ altKey: %t, ctrlKey: %t, metaKey: %t, shiftKey: %t,bubbles: true, cancelable: true});if (target.dispatchEvent(ev)) {window.scrollBy(dx, dy);}- })()`, deltaX, deltaY, x, y)+ })()`, deltaX, deltaY, x, y,+ modifiers&modAlt != 0, modifiers&modCtrl != 0,+ modifiers&modMeta != 0, modifiers&modShift != 0)return chromedp.Run(ctx, chromedp.Evaluate(expr, nil))}-func ClickByCoordinate(ctx context.Context, x, y float64) error {+func ClickByCoordinate(ctx context.Context, x, y float64, modifiers int) error {if err := validatePointerCoordinates(x, y); err != nil {return err}- if err := MouseDownByCoordinate(ctx, x, y, "left"); err != nil {+ if err := MouseDownByCoordinate(ctx, x, y, "left", modifiers); err != nil {return err}- return MouseUpByCoordinate(ctx, x, y, "left")+ return MouseUpByCoordinate(ctx, x, y, "left", modifiers)}func ClickByNodeID(ctx context.Context, nodeID int64) error {@@ -386,8 +404,8 @@ func HoverByCoordinate(ctx context.Context, x, y float64) error {return MouseMoveByCoordinate(ctx, x, y)}-func ScrollByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY int) error {- return MouseWheelByCoordinate(ctx, x, y, deltaX, deltaY)+func ScrollByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {+ return MouseWheelByCoordinate(ctx, x, y, deltaX, deltaY, modifiers)}func HoverByNodeID(ctx context.Context, nodeID int64) error {diff --git a/internal/bridge/cdpops_facade.go b/internal/bridge/cdpops_facade.goindex 611a6130..ca018cae 100644--- a/internal/bridge/cdpops_facade.go+++ b/internal/bridge/cdpops_facade.go@@ -51,8 +51,8 @@ func PointerPointForNode(ctx context.Context, nodeID int64, requireTopMost bool)return bridgecdpops.PointerPointForNode(ctx, nodeID, requireTopMost)}-func ClickByCoordinate(ctx context.Context, x, y float64) error {- return bridgecdpops.ClickByCoordinate(ctx, x, y)+func ClickByCoordinate(ctx context.Context, x, y float64, modifiers int) error {+ return bridgecdpops.ClickByCoordinate(ctx, x, y, modifiers)}func ClickByNodeID(ctx context.Context, nodeID int64) error {@@ -91,20 +91,20 @@ func MouseMoveByCoordinate(ctx context.Context, x, y float64) error {return bridgecdpops.MouseMoveByCoordinate(ctx, x, y)}-func MouseDownByCoordinate(ctx context.Context, x, y float64, button string) error {- return bridgecdpops.MouseDownByCoordinate(ctx, x, y, button)+func MouseDownByCoordinate(ctx context.Context, x, y float64, button string, modifiers int) error {+ return bridgecdpops.MouseDownByCoordinate(ctx, x, y, button, modifiers)}-func MouseUpByCoordinate(ctx context.Context, x, y float64, button string) error {- return bridgecdpops.MouseUpByCoordinate(ctx, x, y, button)+func MouseUpByCoordinate(ctx context.Context, x, y float64, button string, modifiers int) error {+ return bridgecdpops.MouseUpByCoordinate(ctx, x, y, button, modifiers)}-func MouseWheelByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY int) error {- return bridgecdpops.MouseWheelByCoordinate(ctx, x, y, deltaX, deltaY)+func MouseWheelByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {+ return bridgecdpops.MouseWheelByCoordinate(ctx, x, y, deltaX, deltaY, modifiers)}-func ScrollByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY int) error {- return bridgecdpops.ScrollByCoordinate(ctx, x, y, deltaX, deltaY)+func ScrollByCoordinate(ctx context.Context, x, y float64, deltaX, deltaY, modifiers int) error {+ return bridgecdpops.ScrollByCoordinate(ctx, x, y, deltaX, deltaY, modifiers)}func HoverByNodeID(ctx context.Context, nodeID int64) error {