You are creating an automation for a form on a web application. Your automation enters data when the web page matches. The web application form contains several web controls, which seem to have the same object level hierarchy in the Object Explorer. You notice that the automation fails to submit the data on the first click of the Submit button. However, the data submits usually after the second or third click.
When is the appropriate time to invoke the PerformClick method?
- Review the RuntimeLog for the order in which the controls are matched. In the automation, add the last matched control's wait method before the PerformClick method.
- Place a long a pause before the PerformClick method in the automation.
- Create a loop within your automation that invokes the PerformClick method until the data finally submits.
- Open the Windows date/time clock menu and count the number of seconds it takes before invoking the PerformClick method. Then set a pause before the PerformClick method for that calculated length of time.
Display Answer
Next Question