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.
, and then
run your JavaScript in there
Namespace: SeleniumNote 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()
Assembly: ThoughtWorks.Selenium.Core (in ThoughtWorks.Selenium.Core.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- script
- Type:
System String
the JavaScript snippet to run
- timeout
- Type:
System String
a timeout in milliseconds, after which this command will return with an error
Implements
ISelenium WaitForCondition(String, String)See Also