Method: Selenium::Client::GeneratedDriver#wait_for_pop_up
- Defined in:
- lib/selenium/client/legacy_driver.rb
#wait_for_pop_up(windowID, timeout) ⇒ Object
Waits for a popup window to appear and load up.
‘windowID’ is the JavaScript window “name” of the window that will appear (not the text of the title bar) If unspecified, or specified as “null”, this command will wait for the first non-top window to appear (don’t rely on this if you are working with multiple popups simultaneously). ‘timeout’ is a timeout in milliseconds, after which the action will return with an error. If this value is not specified, the default Selenium timeout will be used. See the setTimeout() command.
723 724 725 |
# File 'lib/selenium/client/legacy_driver.rb', line 723 def wait_for_pop_up(windowID,timeout) remote_control_command("waitForPopUp", [windowID,timeout,]) end |