lib/capybara/selenium/driver_specializations/edge_driver.rb in capybara-3.32.2 vs lib/capybara/selenium/driver_specializations/edge_driver.rb in capybara-3.33.0
- old
+ new
@@ -11,18 +11,16 @@
def fullscreen_window(handle)
return super if edgedriver_version < 75
within_given_window(handle) do
- begin
- super
- rescue NoMethodError => e
- raise unless e.message.match?(/full_screen_window/)
+ super
+ rescue NoMethodError => e
+ raise unless e.message.match?(/full_screen_window/)
- result = bridge.http.call(:post, "session/#{bridge.session_id}/window/fullscreen", {})
- result['value']
- end
+ result = bridge.http.call(:post, "session/#{bridge.session_id}/window/fullscreen", {})
+ result['value']
end
end
def resize_window_to(handle, width, height)
super
@@ -72,10 +70,10 @@
types << 'local_storage' if clear_all_storage?
types.join(',')
end
def clear_all_storage?
- storage_clears.none? { |s| s == false }
+ storage_clears.none? false
end
def uniform_storage_clear?
storage_clears.uniq { |s| s == false }.length <= 1
end