Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    Mobile Device Emulation Using Puppeteer

    Puppeteer can make Chrome behave like a mobile device. This can be done with DeviceDescriptors. We can have a more clear view about DeviceDescriptors from here.

    We need to choose preferred device name from DeviceDescriptors and include device name in the script.

    Below is the script by which we will visit a website and take a screenshot of its view in iPhone X :-

    So, the screenshot will look like below image :-

    That’s all regarding mobile device emulation using puppeteer.

    Happy testing 🙂

    . . .


    Add Your Comment

    Be the first to comment.

    Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again