From fd6a3d0a75a6cee0d0493360ad6294ed68d9b615 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Mon, 19 Sep 2016 10:43:14 -0700 Subject: [PATCH] fix bad merge --- lib/capybara/selector/selector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/selector/selector.rb b/lib/capybara/selector/selector.rb index 18ad0a81..a34f0794 100644 --- a/lib/capybara/selector/selector.rb +++ b/lib/capybara/selector/selector.rb @@ -234,7 +234,7 @@ module Capybara end def locate_field(xpath, locator, **options) - locate_field = xpath #need to save original xpath for the label wrap + locate_xpath = xpath #need to save original xpath for the label wrap if locator locator = locator.to_s attr_matchers = XPath.attr(:id).equals(locator).or(