You’re getting “TimeoutError is not defined” because TimeoutError
is not global — it’s exported by Puppeteer. Just import it like this:
js
const { TimeoutError } = require('puppeteer').errors;
Then your if (error instanceof TimeoutError)
will work. 👍