Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
Puppeteer - Why is modal hidden when emulating mobile device

I am currently trying to automate a scenario where a non-filtered search is performed on a car sales webpage. which has a cookies modal when first loaded. My issue is that when I run the script to emulate a mobile device the modal is hidden but the webpage is non responsive which implies the modal is either in the background or out of the screen.

Has anyone had something of a similar issue that could help

const puppeteer = require('puppeteer');
const iPad = puppeteer.devices['iPad Pro'];

(async function()  {
    const browser = await puppeteer.launch({
        headless : false,
        slowMo: 50,
        defaultViewport: null,
        args: ['--start-maximized'] 
    });
    const page = await browser.newPage();
    await page.emulate(iPad);
    await page.goto('https://www.arnoldclark.com/').catch();
}) ();
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!