|
|
|
Error messaging in Accuracy is becoming funky and repetitive.
We should come up with a way of handling it in a better way.
These things are coming up too often and are hard to mantain (if messages change it's hard to track them):
throw NewException
.WithMessage(string.Format("The \"{0}\" {1} is not visible or could not be found (Control Suffix being '{2}').", elementKey,
elementType, id))
.Because("The currently selected Browser Driver could not find the given " + elementType +
" or it's not visible.")
.WithWorkaround(string.Format("See if the {0} is registered in the {1} " +
"page and that it's visible.", elementType,
GenericContext<Context>.Current.CurrentPage.Key))
.Of<ExceptionType>();
|
|
Description
|
Error messaging in Accuracy is becoming funky and repetitive.
We should come up with a way of handling it in a better way.
These things are coming up too often and are hard to mantain (if messages change it's hard to track them):
throw NewException
.WithMessage(string.Format("The \"{0}\" {1} is not visible or could not be found (Control Suffix being '{2}').", elementKey,
elementType, id))
.Because("The currently selected Browser Driver could not find the given " + elementType +
" or it's not visible.")
.WithWorkaround(string.Format("See if the {0} is registered in the {1} " +
"page and that it's visible.", elementType,
GenericContext<Context>.Current.CurrentPage.Key))
.Of<ExceptionType>(); |
Show » |
| There are no comments yet on this issue.
|
|