lib/watir-webdriver/elements/frame.rb in watir-webdriver-0.2.6 vs lib/watir-webdriver/elements/frame.rb in watir-webdriver-0.2.7
- old
+ new
@@ -6,9 +6,11 @@
@parent.assert_exists
element = locate_iframe || locate_frame
element or raise UnknownFrameException, "unable to locate frame/iframe using #{selector_string}"
+ @parent.reset!
+
FramedDriver.new(element, driver)
end
def assert_exists
if @selector.has_key? :element