We're running an angular app and need to wait until angular is done on the page before we try and run our automation.
Our automation is separate from the application, so we need to be able to run a javascript function against the browser to know if the DOM is finished loading and the events are all attached.