From 46e215b135c4b9632a931451f60e22d24084ad25 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Sat, 23 Jul 2016 17:17:46 -0700 Subject: [PATCH] still need to support the abomination that is the element --- lib/capybara/selector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb index 1c572034..6cd35f81 100644 --- a/lib/capybara/selector.rb +++ b/lib/capybara/selector.rb @@ -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