For example:
- If you use residential rotating proxies and a site blocks you with some specific test, you might want to retry the request instead of getting the successful screenshot of the page with the CAPTCHA or an error.
- Setting
fail_if_content_contains=Coming Soon
for your screenshot requests allows you to automatically ignore captures showing “Coming Soon” on a product page, ensuring you only get notified when the page updates to show the product is available for purchase. - To focus monitoring on actual uptime and avoid capturing screenshots during nightly maintenance, configure your requests with
fail_if_content_contains=Maintenance
, thereby skipping any maintenance messages displayed on your application’s homepage.
You don’t pay for failed and cached screenshots with ScreenshotOne.
That’s exactly what you need the option fail_if_content_contains
for.
Let’s quickly see how it works and how you can use it. Let’s first render the example.com page:
The result is:
Now, let’s try to fail it:
The result is:
As you might notice, the match is case insensitive, it is done for simplicity.