How to disable mobile emulation for startFlow? #13320
Answered
by
adamraine
hasangenc0
asked this question in
Q&A
-
Hi, my puppeteer config: const browser = await puppeteer.launch({
headless: false,
defaultViewport: null,
args: ['--disable-mobile-emulation']
});
const page = await browser.newPage();
const flow = await startFlow(page, {name: 'open google'});
await flow.navigate('https://www.google.com', {
stepName: 'first navigation'
}); but await page.goto('https://www.google.com') Is there an option for disabling mobile emulation in |
Beta Was this translation helpful? Give feedback.
Answered by
adamraine
Nov 4, 2021
Replies: 1 comment
-
You should use the desktop config: 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.
0 replies
Answer selected by
hasangenc0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should use the desktop config: