Skip to content

Instantly share code, notes, and snippets.

@ncoblentz
Created November 22, 2011 22:14
Show Gist options
  • Save ncoblentz/1387209 to your computer and use it in GitHub Desktop.
Save ncoblentz/1387209 to your computer and use it in GitHub Desktop.
def each_frame(frames,&block)
frames.each do |f|
yield f
each_frame(f.frames,&block)
end
end
status = browser.html.include?(match)
each_frame(browser.frames) do |f|
break if(status=status || f.html.include?(match))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment