cancel
Showing results for 
Search instead for 
Did you mean: 

Text Rejected Error

SOLVED
Highlighted
Occasional Contributor

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?

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Text Rejected Error

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?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

3 REPLIES 3
Highlighted
Community Manager

Re: Text Rejected Error

Thanks for posting your question here! Let's see if the Community members will have some idea -

 

@tristaanogre @anupamchampati @Wamboo @AlexKaras 

What do you think?🙂


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Community Hero

Re: Text Rejected Error

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?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
Occasional Contributor

Re: Text Rejected Error

Thank you @AlexKaras , that fixed it.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors