4 ms·
If I have to do one thing to monitor a simple website I'm probably going to use something that takes a screenshot periodically and checks it for changes. There
by dimitar 4y ago
If I have to do one thing to monitor a simple website I'm probably going to use something that takes a screenshot periodically and checks it for changes. There are open source solutions but I just prefer to pay a bit for a managed service to do it.
I think it covers quite a lot of things - the servers are up, DNS is OK, assets are OK. It can also be a safety net in case of other, more sophisticated monitoring fails to detect an unusual state.
This doesn't work well for website with too much javascript, ads or widgets.
- radus 4y agoWhat are the OSS solutions for this?
- wswope 4y agoSelenium is the first one that comes to mind. I think most of the big browser automation toolkits should have the ability to do screenshots in some capacity.
- radus 4y agoYes you’re definitely right - I’ve recently started using SeleniumBase for Python which includes a few extra niceties. I was more asking about the part where you compare between releases (or test suite runs) to see if anything changed. I suppose you can just use compare hashes, but I could imagine also having some feature that highlights changes on the screenshot. SeleniumBase has a feature that looks at markup and which stores screenshots for visual comparison to a set baseline: https://seleniumbase.io/examples/visual_testing/ReadMe/ https://seleniumbase.io/examples/visual_testing/ReadMe/ Found this blog describing use of SeleniumBase for that and OpenCV for screenshot comparison as another layer: https://blog.streamlit.io/testing-streamlit-apps-using-seleniumbase/ https://blog.streamlit.io/testing-streamlit-apps-using-selen...
- mekster 4y agoYou want to update your tools with Puppeteer or Playwright.
- 5d8767c68926 4y agoShot-scraper https://github.com/simonw/shot-scraper https://github.com/simonw/shot-scraper