Skip to main content
When to use it. You build a web app and want to see it in Safari, on a Mac and on an iPhone, without owning either. One job opens the page in both and brings back two pictures with the page errors and failed requests

Run it

box web opening a page in Safari and saving its screenshot

example.com in Safari on a Mac, as box saved it
example.com in Safari on an iPhone simulator, as box saved it
Safari on the Mac, then Safari on the iPhone simulator, made smaller for this page. web.json lists the errors, the failed requests and the load times

Options

  • --serve "npm run dev" --port 3000 uploads this folder and starts your dev server on the Mac first, then opens the path you give (default /)
  • --width sets the Mac window width (default 1280), --dark the iPhone appearance, --device the simulator
  • --wait-for "#app" waits for a CSS selector before the pictures