Checking hand sanitizer stock at the local grocery store with Trakr

Chang Xiao
Apr 17 · 3 min read

In the last blog post, we quickly put together a proof-of-concept using Trakr to monitor the toilet paper inventory level at the grocery stores via visual testing.

The quick hack worked, however, there were some flaws with the approach:

  • An excessive amount of configuration is needed
  • Possible false positive through the visual testing

We wanted to create a simpler way to monitor this information while addressing the above shortfalls, text monitoring is born!

Text monitoring: Explained

The concept of text monitoring is very simple.

  1. We find a page where all product is out of stock.
Image for post
Image for post

2. When one of the items is back in stock, we want to receive an email notification.

Image for post
Image for post

In essence, we are just checking a specific text when while taking the screenshot of the page.

The configuration allows you to monitor specific text for each URL in your project. In this case, we want to be alerted when the word “Add to Cart” appears so we know at least one of the items is back in stock for purchasing.

Image for post
Image for post

Per our last blog post, we also set up a small monitoring interval to check for the text

Image for post
Image for post

Finally, when the text appears on the page, you will receive an email notification:

Image for post
Image for post

Last thoughts:

Text monitoring shows Trakr’s ability to generate visual data from web pages as well as extracting text information. This feature can be used reversely to watch for specific blocks of texts on the website such as legal disclaimers, etc to make sure they are being displayed at all times.

Trakr

Product updates, insights, and everything else on QA…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store