Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/browser-use/browser-harness-js
/ functions
Functions
38 in github.com/browser-use/browser-harness-js
⨍
Functions
38
◇
Types & classes
1,181
↓ 652 callers
Method
_call
(method: string, params?: unknown)
sdk/generated.ts:6
↓ 24 callers
Function
push
(name: string, profileDir: string)
sdk/session.ts:323
↓ 5 callers
Function
escId
(name: string)
sdk/gen.ts:71
↓ 4 callers
Function
jsdocLines
(text: string | undefined, indent: string)
sdk/gen.ts:78
↓ 4 callers
Function
renderType
Render a type (Prop or CdpType) to a TS type string in the context of `currentDomain`.
sdk/gen.ts:88
↓ 2 callers
Method
close
()
sdk/session.ts:132
↓ 2 callers
Function
getBrowserCandidates
OS-specific user-data dirs for Chromium-based browsers, in rough popularity order.
sdk/session.ts:320
↓ 2 callers
Method
openWs
(wsUrl: string, timeoutMs: number)
sdk/session.ts:104
↓ 2 callers
Function
renderInterfaceBody
Param/return interface. Returns the body (without surrounding interface keyword).
sdk/gen.ts:152
↓ 1 callers
Method
_call
(method: string, params: unknown = {})
sdk/session.ts:181
↓ 1 callers
Function
bindDomains
(t: Transport)
sdk/generated.ts:14391
↓ 1 callers
Function
build
()
sdk/gen.ts:166
↓ 1 callers
Function
detectBrowsers
()
sdk/session.ts:298
↓ 1 callers
Method
getActiveSession
()
sdk/session.ts:151
↓ 1 callers
Function
isAllOptional
(props: Prop[] | undefined)
sdk/gen.ts:161
↓ 1 callers
Function
isBrowserLevel
Browser-level methods never take a sessionId.
sdk/session.ts:221
↓ 1 callers
Method
isConnected
()
sdk/session.ts:128
↓ 1 callers
Function
isExpression
(code: string)
sdk/repl.ts:31
↓ 1 callers
Function
listPageTargets
(session: Session)
sdk/session.ts:278
↓ 1 callers
Function
loadDomains
()
sdk/gen.ts:61
↓ 1 callers
Method
onEvent
Subscribe to all CDP events. Returns an unsubscribe fn.
sdk/session.ts:156
↓ 1 callers
Method
onMessage
(raw: string)
sdk/session.ts:196
↓ 1 callers
Function
readDevToolsActivePort
* Parse both lines of DevToolsActivePort. Chrome writes: * line 1: port number * line 2: path (e.g. "/devtools/browser/<uuid>") * With both in
sdk/session.ts:250
↓ 1 callers
Function
renderObject
(props: Prop[], currentDomain: string, indent: string)
sdk/gen.ts:120
↓ 1 callers
Function
renderResult
* Render a value to the body of a successful /eval response. * - undefined / null / "" / {} / [] → empty (caller prints nothing) * - string → raw (
sdk/repl.ts:62
↓ 1 callers
Function
renderTypeDef
Top-level type definition for a domain's `types[]`.
sdk/gen.ts:130
↓ 1 callers
Function
resolveWsUrl
(opts: ConnectOptions)
sdk/session.ts:235
↓ 1 callers
Function
runSnippet
(code: string)
sdk/repl.ts:48
↓ 1 callers
Function
serialize
(v: unknown)
sdk/repl.ts:39
↓ 1 callers
Function
tryReadDevToolsActivePort
* Read and parse `<profileDir>/DevToolsActivePort` once (no polling), returning * undefined if the file is missing or malformed. Also returns mtime s
sdk/session.ts:364
Method
connect
* Connect to Chrome's browser-level WebSocket. * * With no args, runs auto-detect: scans OS-specific profile dirs via * `detectBrowsers()` an
sdk/session.ts:75
Method
constructor
()
sdk/session.ts:55
Method
constructor
(public code: number, message: string, public data?: unknown)
sdk/session.ts:214
Function
fetch
(req)
sdk/repl.ts:74
Method
finish
(err?: Error)
sdk/session.ts:108
Method
setActiveSession
Set the active sessionId directly (e.g. one you already attached).
sdk/session.ts:147
Method
use
* Pick a target and make subsequent calls auto-route to it. * Uses Target.attachToTarget with flatten:true (single-WS, sessionId-on-message).
sdk/session.ts:140
Method
waitFor
Wait for the next event matching `method` (and optional predicate).
sdk/session.ts:164