execAndWait

Executes JavaScript and waits for the browser to complete any activity generated from the action.

Browser Support: IE, Chrome, Firefox

usage:   execAndWait <JavaScript code>
example: execAndWait window.setInterval('window.scrollBy(0,600)', 1000);