lib/watir-webdriver/elements/frame.rb in watir-webdriver-0.0.7 vs lib/watir-webdriver/elements/frame.rb in watir-webdriver-0.0.8

- old
+ new

@@ -53,10 +53,10 @@ driver end end def locate_frame - loc = VALID_LOCATORS.find { |loc| @selector[loc] } + loc = VALID_LOCATORS.find { |loc| @selector.has_key? loc } unless loc raise MissingWayOfFindingObjectException, "can only locate frames by #{VALID_LOCATORS.inspect}" end