Back to Browsershot

Setting the user agent

docs/miscellaneous-options/setting-the-user-agent.md

5.3.0230 B
Original Source

If you want to set the user agent Google Chrome should use when taking the screenshot you can do so:

php
Browsershot::url('https://example.com')
    ->userAgent('My Special Snowflake Browser 1.0')
    ->save($pathToImage);