lib/watir-webdriver/locators/element_locator.rb in watir-webdriver-0.6.10 vs lib/watir-webdriver/locators/element_locator.rb in watir-webdriver-0.6.11

- old
+ new

@@ -37,10 +37,10 @@ # This actually only applies when finding by xpath/css - browser.text_field(:xpath, "//input[@type='radio']") # We don't need to validate the element if we built the xpath ourselves. # It is also used to alter behavior of methods locating more than one type of element # (e.g. text_field locates both input and textarea) validate_element(element) if element - rescue Selenium::WebDriver::Error::NoSuchElementError + rescue Selenium::WebDriver::Error::NoSuchElementError, Selenium::WebDriver::Error::ObsoleteElementError nil end def locate_all if @selector.size == 1