
How to screenshot your app on 10 different devices in one script
How to Screenshot Your App on 10 Different Devices in One Script Checking your app on multiple devices usually means: spinning up iOS Simulator, Android Emulator, resizing your browser, or paying for BrowserStack. None of these run headlessly or fit naturally into a CI pipeline. Here's a script that captures your app on a full device matrix — phones, tablets, laptops — in parallel, under 60 seconds, with no emulators. Available devices // Run this to see the full list of 25+ supported device presets const res = await fetch ( " https://pagebolt.dev/api/v1/list-devices " , { headers : { " x-api-key " : process . env . PAGEBOLT_API_KEY }, }); const { devices } = await res . json (); console . log ( devices . map (( d ) => d . id ). join ( " \n " )); Key presets: iphone_14_pro iphone_se iphone_14_pro_max ipad_pro_12_9 ipad_mini galaxy_s23 galaxy_tab_s8 macbook_pro_16 macbook_air_m2 surface_pro_9 Full device matrix script import fs from " fs/promises " ; import path from " path " ; const PA
Continue reading on Dev.to Webdev
Opens in a new tab


