Back to Puppeteer

Target.type() method

docs/api/puppeteer.target.type.md

19.2.2320 B
Original Source

Target.type() method

Identifies what kind of target this is.

Signature

typescript
class Target {
  abstract type(): TargetType;
}

Returns:

TargetType

Remarks

See docs for more info about background pages.