module Capybara::Selenium::Driver::ChromeDriver
def fullscreen_window(handle)
def fullscreen_window(handle) within_given_window(handle) do begin super rescue NoMethodError => err raise unless err.message =~ /full_screen_window/ result = bridge.http.call(:post, "session/#{bridge.session_id}/window/fullscreen", {}) result['value'] end end end