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

attempt to move to top frame before just resetting the scopes

This commit is contained in:
Thomas Walpole 2022-06-14 18:43:08 -07:00
parent a9dd889b64
commit 522403de08
2 changed files with 3 additions and 2 deletions

View file

@ -130,6 +130,7 @@ module Capybara
if @touched
driver.reset!
@touched = false
switch_to_frame(:top) rescue nil # rubocop:disable Style/RescueModifier
@scopes = [nil]
end
@server&.wait_for_pending_requests

View file

@ -75,11 +75,11 @@ Capybara::SpecHelper.run_specs TestSessions::SeleniumFirefox, 'selenium', capyba
when 'Capybara::Session selenium node #shadow_root should find elements inside the shadow dom using CSS',
'Capybara::Session selenium node #shadow_root should find nested shadow roots',
'Capybara::Session selenium node #shadow_root should click on elements',
'Capybara::Session selenium node #shadow_root should use convenience methods once moved to a descendant of the shadow root'
'Capybara::Session selenium node #shadow_root should use convenience methods once moved to a descendant of the shadow root',
'Capybara::Session with firefox with selenium driver #evaluate_script returns a shadow root'
pending "Firefox doesn't yet have full W3C shadow root support"
when 'Capybara::Session selenium #fill_in should handle carriage returns with line feeds in a textarea correctly'
pending "Not sure what firefox is doing here"
pending 'Not sure what firefox is doing here'
end
end