Capturing screenshots in Selenium and TypeScript
Use full screenshots to validate that your web scraper worked as intended
When you use selenium automation to capture data from complex websites, it’s important to make sure that the results you get match the data you wanted to retrieve. But modern websites that use frameworks such as React can be tricky — sure, you captured this field, but was it in the right state at the time?
I encourage you to use screen captures to enable your quality assurance department to verify that the information gathered matches what a human…