electron-agent-bridge
Preparing search index...
@electron-agent-bridge/engine
AgentSnapshotter
Class AgentSnapshotter
Snapshots and element lookups through the page agent (P5): cached, ref-bearing, delta-capable.
Index
Constructors
constructor
Methods
find
take
Constructors
constructor
new
AgentSnapshotter
(
pool
:
AgentPool
)
:
AgentSnapshotter
Parameters
pool
:
AgentPool
Returns
AgentSnapshotter
Methods
find
find
(
target
:
TargetDescriptor
,
locator
:
{
css
?:
string
;
exact
?:
boolean
;
name
?:
string
;
nth
?:
number
;
ref
?:
string
;
role
?:
string
;
text
?:
string
;
}
,
limit
:
number
,
)
:
Promise
<
Envelope
<
{
matches
:
{
line
:
string
;
name
:
string
;
ref
:
string
;
role
:
string
}
[]
;
total
:
number
;
}
,
>
,
>
Parameters
target
:
TargetDescriptor
locator
:
{
css
?:
string
;
exact
?:
boolean
;
name
?:
string
;
nth
?:
number
;
ref
?:
string
;
role
?:
string
;
text
?:
string
;
}
limit
:
number
Returns
Promise
<
Envelope
<
{
matches
:
{
line
:
string
;
name
:
string
;
ref
:
string
;
role
:
string
}
[]
;
total
:
number
;
}
,
>
,
>
take
take
(
target
:
TargetDescriptor
,
options
?:
SnapshotOptions
,
)
:
Promise
<
Envelope
<
{
cursor
?:
string
;
kind
:
"delta"
|
"full"
|
"unchanged"
;
lineCount
:
number
;
target
:
string
;
text
:
string
;
title
:
string
;
url
:
string
;
}
,
>
,
>
Parameters
target
:
TargetDescriptor
options
:
SnapshotOptions
= {}
Returns
Promise
<
Envelope
<
{
cursor
?:
string
;
kind
:
"delta"
|
"full"
|
"unchanged"
;
lineCount
:
number
;
target
:
string
;
text
:
string
;
title
:
string
;
url
:
string
;
}
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
find
take
electron-agent-bridge
Loading...
Snapshots and element lookups through the page agent (P5): cached, ref-bearing, delta-capable.