Skip to content

how to run lighthouse-puppeteer in Desktop mode? #13789

Answered by adamraine
qkrdlsrnjs11 asked this question in General
Discussion options

You must be logged in to vote

Lighthouse applies its own emulation settings to the page regardless of the environment you set up with puppeteer beforehand. To get Lighthouse to use desktop emulation, you can use the Lighthouse desktop config:

const desktopConfig = require('lighthouse/lighthouse-core/config/desktop-config.js');
const {lhr} = await lighthouse(url, flags, desktopConfig);

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@bharathkr1
Comment options

@qkrdlsrnjs11
Comment options

@bharathkr1
Comment options

@adamraine
Comment options

@bharathkr1
Comment options

Answer selected by qkrdlsrnjs11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #13787 on March 28, 2022 15:28.