Menu Close
    Hire us 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 🙂

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just received your message and our expert will get back to you shortly.
    Send Again
    Close