mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Changes in xpath mean we can just #to_s this now!
This commit is contained in:
parent
1c6ea8ac3e
commit
026e0b3406
2 changed files with 2 additions and 7 deletions
|
@ -17,12 +17,7 @@ module Capybara
|
|||
end
|
||||
@selector ||= Selector.all[Capybara.default_selector]
|
||||
|
||||
xpath = @selector.call(@locator)
|
||||
if xpath.respond_to?(:to_xpaths)
|
||||
@xpath = xpath.to_xpath(:fuzzy)
|
||||
else
|
||||
@xpath = xpath.to_s
|
||||
end
|
||||
@xpath = @selector.call(@locator).to_s
|
||||
end
|
||||
|
||||
def failure_message(type, node)
|
||||
|
|
2
xpath
2
xpath
|
@ -1 +1 @@
|
|||
Subproject commit ddbf50ef74c4655207ce1fc8c4ec62cef38a7789
|
||||
Subproject commit a31816d86ad341962aa1019e08f5835daad87b8c
|
Loading…
Reference in a new issue