How to use [puppeteer.evaluate]

The reference page of puppeteer.evaluate has its arguments, constraints and declaration.

Evaluates a JavaScript expression in the page.

Arguments:

  • Slot value - Session identifier.
  • expression - JavaScript expression string.
  • args - Optional arguments for JS function invocation. Each child value is one argument.

Examples:

puppeteer.evaluate:SESSION_ID
   expression:"document.title"
puppeteer.evaluate:SESSION_ID
   expression:"typeof window.mcaptcha"