Constructor
new Document(chromyopt, clientopt, nodeIdopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
chromy |
Document |
<optional> |
Chromy instance |
|
client |
CDP |
<optional> |
CDP instance |
|
nodeId |
number |
<optional> |
null
|
Members
chromy :Document
- Source:
Chromy instance
Type:
client :CDP
- Source:
- See:
CDP client instance
Type:
- CDP
Methods
(async) evaluate(expr, options) → {Promise}
- Source:
Evaluates a expression in the browser context
Parameters:
Name | Type | Description |
---|---|---|
expr |
function | string | JS expression |
options |
object | array | Parameter array of |
Returns:
Returned value of expr
function
- Type
- Promise