Collect runtime JS and Network error during Selenium tests