Hacking Trakr to track inventory of local toilet papers
Disclaimer: There is no plan to release this feature or create a product based on this any time soon. The purpose of…
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.
The goal is to be alerted when an item is back in stock on the grocery store website.
- We find a page where all product is out of stock.
2. When one of the items is back in stock, we want to receive an email notification.
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.
Per our last blog post, we also set up a small monitoring interval to check for the text
Finally, when the text appears on the page, you will receive an email notification:
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.