lib/watir-webdriver/locators/element_locator.rb in watir-webdriver-0.0.6 vs lib/watir-webdriver/locators/element_locator.rb in watir-webdriver-0.0.7
- old
+ new
@@ -229,9 +229,13 @@
element
rescue WebDriver::Error::NoSuchElementError => wde
nil
end
+ def all_elements
+ @wd.find_elements(:xpath => ".//*")
+ end
+
def tag_name_matches?(element, tag_name)
tag_name === element.tag_name
end
def valid_attribute?(attribute)