Forum Discussion

anumolu9999's avatar
anumolu9999
Contributor
8 years ago

How to ignore the Warnings to write to log data

Hello, Can any please help with this. I am getting warning for an action on control. Can we ignore the warning to write to the testlogs Thanks, Anumolu.
  • tristaanogre's avatar
    tristaanogre
    8 years ago

    Well, it sounds like your test "works" in that it is showing that the field only allows 30 characters.  However, "SetText" will ALWAYS return that warning for a text field that only allows a certain length. So, no, there's no way of turning off that warning.

    Try using "Keys" instead of "SetText" in this instance.  That will probably attempt to type all 35 characters but you won't get the warning.  You'll need to have your test do some other detection, then, to determine whether or not the field restrictions worked.