lib/webrat/core/locators.rb in honkster-webrat-0.4.4.2 vs lib/webrat/core/locators.rb in honkster-webrat-0.6.0
- old
+ new
@@ -11,10 +11,10 @@
module Webrat
module Locators
def field_by_xpath(xpath)
- Field.load(@session, Webrat::XML.xpath_at(dom, xpath))
+ Field.load(@session, dom.xpath(xpath).first)
end
end
end