I have a script where I fill an elaborate inputform in a web application. I do this by starting with an empty form and go through validation-messages.
The messages are presented on a different page (after pressing 'Send') and link back to the control they pertain to. Clicking on them will set the cursor on the form-page with the focus in the control. I then fill the control with either valid or invalid input, and press 'Send' again to go to the next validation-message.
When recording this script, Robot puts the InputKeys function *before* the Browser NewPage action. The Browser NewPage action is what happens when I click the validation message and get linked to the control on the original page. That means that the input is lost because Robot does not wait for the page to load. I have to manually get into my script and switch every InputKeys and Browser NewPage line.
Is there anything I can do at recording time that fixes this problem? It is imperative that I follow the validation links and input text straight away. Is there a Validation Point that I can use to ensure that the right control has the focus? I know I can click the control to set focus on it. This works with comboboxes and radiobuttons, but not with text fields.