TestArmada / nightwatch-extra

MIT License
30 stars 26 forks source link

Added error dictionary #102

Closed chiahrens closed 6 years ago

chiahrens commented 6 years ago

Added error dictionary as well as logic to distinguish between: 1) Server/network connection error 2) Selector not found 3) Selector not visible

The dictionary source can either be a url string or url object (https://nodejs.org/api/http.html#http_http_request_options_callback). It can be set as env var NIGHTWATCH_ERROR_DICTIONARY or in nightwatch.json testSetting.default.errorDictionary

Example dictionary: https://gecgithub01.walmart.com/cahrens/test/blob/master/dictionary.json

archlichking commented 6 years ago

we need a readme for the dictionary feature, including how to enable dictionary, its format and how it works.