lib/watir/frame.rb in watir-2.0.1 vs lib/watir/frame.rb in watir-2.0.2.rc1
- old
+ new
@@ -18,14 +18,13 @@
raise e unless e.message =~ /Access is denied/
end
end
end
- def ole_inner_elements
+ def __ole_inner_elements
document.body.all
end
- private :ole_inner_elements
def initialize(container, how, what)
set_container container
@how = how
@what = what
@@ -37,9 +36,13 @@
if @document
@document
else
raise FrameAccessDeniedException, "IE will not allow access to this frame for security reasons. You can work around this with ie.goto(frame.src)"
end
+ end
+
+ def document_mode
+ document.documentMode
end
def attach_command
@container.page_container.attach_command + ".frame(#{@how.inspect}, #{@what.inspect})".gsub('"','\'')
end