mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
still need to support the abomination that is the <frame> element
This commit is contained in:
parent
114ec10d12
commit
46e215b135
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ end
|
||||||
|
|
||||||
Capybara.add_selector(:frame) do
|
Capybara.add_selector(:frame) do
|
||||||
xpath do |locator|
|
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 = xpath[XPath.attr(:id).equals(locator.to_s) | XPath.attr(:name).equals(locator)] unless locator.nil?
|
||||||
xpath
|
xpath
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue