I\'m using Selenium to crawl an AngularJS site and would like to create a list of all thrown errors (the specific errors I\'m actually interested in are these lex errors). A