News for hackers. Stuff that matters.
Re:Monitoring tiny web services by wswope on Saturday July 09, 2022 @07:58PM (#32040507)
Selenium 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.
Re:Monitoring tiny web services by radus on Sunday July 10, 2022 @12:23AM (#32041849)
Yes 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/

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-selen...

Re:Monitoring tiny web services by mekster on Monday July 11, 2022 @05:17AM (#32053878)
You want to update your tools with Puppeteer or Playwright.