Forum Discussion

mortenb123's avatar
mortenb123
Contributor
2 years ago

SetText() exception not caught

How can I catch this exception? function setControlText(control, text) { //usage example 1: setControlText(txtUName, userName); //usage example 2: setControlText(passwordBox, ("1234[Enter]")...
  • rraghvani's avatar
    2 years ago

    Not all methods throw an exception, and SetText doesn't throw an exception.

     

    See TestComplete Events, OnLogError Event which can capture the message.