Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
FEATURE: IE container setting
Browse files Browse the repository at this point in the history
  • Loading branch information
lingo committed Jul 29, 2010
1 parent e8ef4c4 commit e4351a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/salad.rb
Expand Up @@ -14,12 +14,18 @@ def debug(str)
def setNextContainer(elt)
self.debug("setNextContainer (was #{@container.inspect}) => #{elt.inspect}")
@container = elt
if @browser.is_a?(Watir::IE) then
@browser.set_container(elt)
end
end

def resetContainer()
@browser.resetContainer()
@container = @browser
self.debug("resetContainer => #{@container.inspect}")
if @browser.is_a?(Watir::IE) then
@browser.set_container(@browser.document)
end
end

def setDebug(turnOn)
Expand Down
5 changes: 5 additions & 0 deletions support/watir-mods.rb
Expand Up @@ -10,6 +10,11 @@
require 'watir'

module Watir
def resetContainer()
@scripter = AppleScripter.new(JavaScripter.new)
@scripter.ensure_window_ready
end

class Frame

def exists?
Expand Down

0 comments on commit e4351a4

Please sign in to comment.