WaitForCondition

From STIQ

Jump to: navigation, search

waitForCondition ( script,timeout )


Arguments:

  • script - the JavaScript snippet to run
  • timeout - a timeout in milliseconds, after which this command will return with an error


The snippet may have multiple lines, but only the result of the last line will be considered.


Note:

By default, the snippet will be run in the runner's test window, not in the window of your application. To get the window of your application, you can use the JavaScript snippet selenium.browserbot.getCurrentWindow() and then run your JavaScript in there.
Personal tools
Noteworthy