compare base node / fix warning message
This commit is contained in:
parent
6461684927
commit
700c9d4671
|
@ -381,8 +381,8 @@ module Capybara
|
|||
end
|
||||
|
||||
def save_and_open_page_path=(path)
|
||||
warn "DEPRECATED: #save_and_open_page_path is deprecated, please use #save_path instead. \m"\
|
||||
"Note: behavior is slightly different with relative paths - see documentation" unless path.nil?
|
||||
warn "DEPRECATED: #save_and_open_page_path is deprecated, please use #save_path instead. \n"\
|
||||
"Note: Behavior is slightly different with relative paths - see documentation" unless path.nil?
|
||||
@save_and_open_page_path = path
|
||||
end
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ Capybara.add_selector(:label) do
|
|||
if field_or_value[:id] && (field_or_value[:id] == node[:for])
|
||||
true
|
||||
else
|
||||
field_or_value.find_xpath('./ancestor::label[1]').include? node
|
||||
field_or_value.find_xpath('./ancestor::label[1]').include? node.base
|
||||
end
|
||||
else
|
||||
node[:for] == field_or_value.to_s
|
||||
|
|
Loading…
Reference in New Issue