Currently, I am undertaking a project that involves converting a dynamic website like Adobe Spark into a static HTML+CSS page, which will eventually be transformed into a PDF. The interactivity of the website relies heavily on Javascript modifying CSS+HTML elements. My main question is whether there is a method to identify all the DOM states of a particular webpage. This might involve simulating various events on the page and then capturing the DOM state after each event. Is there an existing solution for this task?
Is it feasible to develop a program that can record all the states of a website?