Question

Web Application - Will not save without human Input

There is a web application form that I need fill out and save. I have successful filled in the textbox fields using the 'Text' property. The problem....it is not triggering some underlying application validation for the field and then the Save button will complain about it. If I manually type the same exact text in the field, it works.

Question... Is there a way to send text to the text field as keystrokes so the application thinks the automation is a human?

I have also tried 'SetValue', 'SetFocus', and 'Perform Click' to try and get the value. No improvement.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
December 11, 2018 - 6:34am

Check if any events on textboxes if yes then raise those events in the automation to validate the data.

Comments

Keep up to date on this post and subscribe to comments

December 11, 2018 - 6:34am

Check if any events on textboxes if yes then raise those events in the automation to validate the data.

December 11, 2018 - 4:09pm

Thanks for the tip. In my situation, the web application was trying to perform onchange field validation. I ended up using the text box's Method called 'RaiseEvent' and chose 'onchange'. It worked. I also needed to use pause to allow the validation to complete before the next automation started too quickly.

December 12, 2018 - 1:23am

Use pause (sleep method) control.