Skip to content

Instantly share code, notes, and snippets.

@jarib
Created December 14, 2009 23:04
Show Gist options
  • Save jarib/256529 to your computer and use it in GitHub Desktop.
Save jarib/256529 to your computer and use it in GitHub Desktop.
>> driver = Selenium::WebDriver::Driver.new(Selenium::WebDriver::Firefox::Bridge.new)
=> #<Selenium::WebDriver::Driver:0x102284c10 browser=:firefox>
>> driver.execute_script("window.open('http://www.google.com')")
=> nil
>> driver.window_handles
=> ["{4184fcf9-103d-5c4a-9c96-3aa6a4ad501f}", "{20f5ae36-fcd8-3949-a1f7-33cb0cae2a98}"]
>> driver.quit
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment