1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Merge branch 'frames'

* frames:
  still need to support the abomination that is the <frame> element
This commit is contained in:
Thomas Walpole 2016-07-23 21:18:57 -07:00
commit 2fece3ae24

View file

@ -384,7 +384,7 @@ end
Capybara.add_selector(:frame) do
xpath do |locator|
xpath = XPath.descendant(:iframe)
xpath = XPath.descendant(:iframe) + XPath.descendant(:frame)
xpath = xpath[XPath.attr(:id).equals(locator.to_s) | XPath.attr(:name).equals(locator)] unless locator.nil?
xpath
end