Retrieving the text from a message when writing automation tests using White
Quick tip on how to retrieve the value of a message box when writing automation tests using White for Windows desktop apps.
var dialog = window.MessageBox("ERROR");
return dialog.Get<Label>(SearchCriteria.ByControlType(ControlType.Text)).Text;