Document

Document

Document class

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
If the expression returns a Promise object,
the promise is resolved automatically.

options object | array

Parameter array of expr function or
Option object

Returns:

Returned value of expr function

Type
Promise