waitForCondition (UI Automation - Synchronization)
Compatible with:
- Purpose
- Runs the specified JavaScript snippet repeatedly until it evaluates to \"true\". The snippet may have multiple lines, but only the result of the last line will be considered. Note that, 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
- Syntax
- waitForCondition(script, timeout)
- Target
- script - The JavaScript snippet to run.
- Value
- timeout - A timeout in milliseconds, after which this command will return with an error.
- Return Value
- The border-width in pixels.