Skip to content

Commit ef5854b

Browse files
committed
update browsers.go and browsers_test.go
1 parent 6f5dc3b commit ef5854b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmd/browsers_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ type FakeComputerService struct {
533533
ScrollFunc func(ctx context.Context, id string, body kernel.BrowserComputerScrollParams, opts ...option.RequestOption) error
534534
DragMouseFunc func(ctx context.Context, id string, body kernel.BrowserComputerDragMouseParams, opts ...option.RequestOption) error
535535
TypeTextFunc func(ctx context.Context, id string, body kernel.BrowserComputerTypeTextParams, opts ...option.RequestOption) error
536+
SetCursorVisibilityFunc func(ctx context.Context, id string, body kernel.BrowserComputerSetCursorVisibilityParams, opts ...option.RequestOption) (*kernel.BrowserComputerSetCursorVisibilityResponse, error)
536537
}
537538

538539
func (f *FakeComputerService) ClickMouse(ctx context.Context, id string, body kernel.BrowserComputerClickMouseParams, opts ...option.RequestOption) error {
@@ -578,6 +579,12 @@ func (f *FakeComputerService) TypeText(ctx context.Context, id string, body kern
578579
}
579580
return nil
580581
}
582+
func (f *FakeComputerService) SetCursorVisibility(ctx context.Context, id string, body kernel.BrowserComputerSetCursorVisibilityParams, opts ...option.RequestOption) (*kernel.BrowserComputerSetCursorVisibilityResponse, error) {
583+
if f.SetCursorVisibilityFunc != nil {
584+
return f.SetCursorVisibilityFunc(ctx, id, body, opts...)
585+
}
586+
return &kernel.BrowserComputerSetCursorVisibilityResponse{}, nil
587+
}
581588

582589
// --- Tests for Logs ---
583590

0 commit comments

Comments
 (0)