Added methods for retrieving screenshot and javascript errors from UIAssertionError