diff --git a/.gitignore b/.gitignore index f02a2f86..41217c94 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build composer.lock docs vendor +.phpunit.result.cache \ No newline at end of file diff --git a/README.md b/README.md index 253bf5ea..ea9059f7 100644 --- a/README.md +++ b/README.md @@ -439,8 +439,7 @@ Browsershot::url('https://example.com') #### Setting the user agent - -If, for some reason, you want to set the user agent Google Chrome should use when taking the screenshot you can do so: +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') @@ -450,8 +449,7 @@ Browsershot::url('https://example.com') #### Setting the CSS media type of the page - -You can also emulate the media type, especially usefull when you're generating pdf shots, because it will try to emulate the print version of the page by default. +You can emulate the media type, especially usefull when you're generating pdf shots, because it will try to emulate the print version of the page by default. ```php Browsershot::url('https://example.com') @@ -459,7 +457,6 @@ Browsershot::url('https://example.com') ->savePdf($pathToPdf); ``` - The default timeout of Browsershot is set to 60 seconds. Of course, you can modify this timeout: ```php @@ -508,9 +505,9 @@ Browsershot::url('https://example.com') ... ``` -#### Setting Cookies +#### Using Cookies -To add cookies to HTTP headers, pass an array containing cookie key/value pairs to `useCookies` method: +You can add cookies to the request to the given url: ```php Browsershot::url('https://example.com')