Forum Discussion

ryanterronez's avatar
ryanterronez
Occasional Contributor
5 years ago

Text Rejected Error

When running a test I am getting an error in the log that says, "The text was rejected."  There is validation on that control, and required you to enter a value in another control.  The keyword test adds values to both controls and the process completes but I am getting a false negative in the log saying that the test failed.  Is there a way to bypass this error, or ignore it so that I am not getting a failure in my test logs?

 

  • Hi,

     

    As an initial guess: if the values are entered into controls via the .SetText() method, try to replace .SetText() with the .Keys() one.

    Otherwise, can you post here the screenshot of your test?

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    As an initial guess: if the values are entered into controls via the .SetText() method, try to replace .SetText() with the .Keys() one.

    Otherwise, can you post here the screenshot of your test?