Record, replay, and rerun user actions on web applications to automate testing and validate user flows