Forum Discussion

mortenb123's avatar
mortenb123
Contributor
6 months ago
Solved

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
    6 months ago

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

     

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