Step-by-Step Guide to Use Delay to Fetch the Weather InformationLet's create an example to automate the weather process with Delay activity. This activity helps you to delay the search results by few seconds, so that, the automation process is not timed out. Prerequisite: 1. In the Admin menu, add an application of Application type - WebApps. 2. In the Application Properties panel: · In the Login URL and Search URL field, enter https://www.google.com/. · In the Display Name field, enter Google. · In the Preferred Browser list, select Internet Explorer. 3. Click the The web application is created.
To create a process with Delay activity: 1. Create a process. 2. In the Parameter bar, create an Out argument TodaysWeather of Argument type - String. 3. From the Canvas Tools panel, add the Application activity to the Flowchart designer on the Canvas. 4. In the Application Type list, select WebApps. 5. In the Select An Application list, select Google. 6. Click
the 7. Click the 8. In the Action list, select Set Value. 9. In the Input Source field, enter Weather and select the check box. 10. Enter
a Display Name,
and click the 11. Click
the 12. Click the 13. In the Action list, select Click. 14. Enter
a Display Name,
and click the 15. Click
the 16. Click the 17. In the Action list, select Get Text. 18. In the Variable Name field, enter TodaysWeather. 19. In the Variable Type list, select Text. 20. Enter
a Display Name, and click
the 21. Click
the 22. Double click the Application activity box. 23. From the Canvas Tools panel, add the Delay activity after the Click - ClickonSearch interaction to the Flowchart designer on the Canvas. 24. In the Sec(s) field, enter value 1 and click << Flowchart. 25. From the Canvas Tools panel, add the WriteLine activity to the Flowchart designer on the Canvas. 26. In the Text field, enter "TodaysWeather " +TodaysWeather. 27. Save the process. 28. Setup the environment and then perform test run.
The console display the output with the defined delayed time. |
Related Topics |