Protractor - Error Handling in Framework
How can we handle error in a Protractor - Cucumber based framework? There are assert failures, which is a genuine fail and there are errors in javascript code (e.g. - element not found, array is empty, something undefined etc..). I wish to handle the later in a graceful manner. Currently Protractor tests fail for the said errors but the messages are not friendly and hard to comprehend. They mostly point to location of errors in protractor library files and not where the actual error occurred in the script (file name, line number etc.) e.g "NoSuchElementError: No element found using locator: By