Created
August 15, 2011 19:05
-
-
Save cheezy/1147467 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fails if the following block doesn't run | |
| page.browser.windows.each do |win| | |
| puts “title is #{win.title}” | |
| end | |
| page.browser.window(:url => /mripage\.asp/).use do | |
| page.save_preferences | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could be a timing issue. Try
.when_present.usefor the last block.