Wait For Browser Event
From UBot Studio
(Difference between revisions)
Line 9: | Line 9: | ||
*Everything Loaded | *Everything Loaded | ||
+ | |||
[[File:browserevent.png]] | [[File:browserevent.png]] |
Revision as of 15:13, 24 April 2013
This command is a Flow Command. This command waits for a browser event to happen such as a page being loaded and DOM ready.
Event to Wait For: The behavior the command will be waiting for in the main browser. The options are the following:
- DOM Ready (To read more about DOM, please see [1].)
- Page Loaded
- Everything Loaded
Example
navigate("google.com", "Wait") wait for browser event("DOM Ready", "") type text(<name="q">, "Holidays", "Standard")
Running the script will wait until the DOM is ready before continuing on with the rest of the script.
navigate("google.com", "Wait") wait for browser event("Page Loaded", "") type text(<name="q">, "Holidays", "Standard")
Running the script will wait until the Page is loaded before continuing on with the rest of the script.
navigate("google.com", "Wait") wait for browser event("Everything Loaded", "") type text(<name="q">, "Holidays", "Standard")
Running the script will wait until Everything on that page is finished loading before continuing on with the rest of the script.