-
i entered th pc url but it redirects to mobile URL. TT.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Doing const config = require('lighthouse/lighthouse-core/config/desktop-config.js');
const flow = await startFlow(page, {config, name: 'open google'}); |
Beta Was this translation helpful? Give feedback.
Doing
flow.navigate
will use the default Lighthouse viewport settings (Moto G4) regardless of the viewport you set with puppeteer beforehand. You can use the desktop viewport by using the Lighthouse desktop config: