WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Can you customize error messages?

Open brandonwc5 opened this issue 6 years ago • 1 comments

My test framework is set up to mostly handle log messages so that they make it clear what failed. However, the one failure that always make me go hunting is when any element cannot be found.

So I am sending a POST like: {"using":"accessibility id","value":"MainLogo"}

Since that element was errantly taken out, it does not exist on the page currently, so I get back: {"status":7,"value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters."}

What I would like is for the value of my POST to be a part of my error message, so that I know WHICH element could not be found, and don't have to spend time debugging to find out what broke.

brandonwc5 avatar Mar 18 '20 15:03 brandonwc5

I second this request. It would be great if the existing message was improved to indicate what property and value were searched for.

PatrickStevens avatar Mar 18 '20 17:03 PatrickStevens