How To Monitor a Web Page for Changes and Trigger a Macro

Here is a demo of a macro that watches a web page for a change. Once a page change is detected it will call the macro using the Web Server trigger.

This was created to work around a dynamic page that had no alerting functionality built in and I'm not about to spend all day going back to check the page constantly.

The current JavaScript stops checking for changes once the first change is detected. The JavaScript could easily be modified to continue monitoring but I wanted to keep everything simple and it matches my use case.

Demo Video

Macro Screenshot

Macro File

Monitor page for change.kmmacros (41.9 KB)

4 Likes

Hello, I think macro is exactly what I need, I have a few questions;

1- Is it possible to use it in Safari
2- Does it check all open tabs in Chrome, if so, is it possible to check only a specific tab or url
3- Is it possible to check the change in a specific line on the page
4- Is the page refresh done automatically or do I need to refresh manually

Thanks in advance for your help.