Sha256: 8582e972e9eb69193f203100e746f92d660d067f20c0d1d460367f79726eb2ab
Contents?: true
Size: 751 Bytes
Versions: 16
Compression:
Stored size: 751 Bytes
Contents
# def set_window_size(width, height) # if Capybara.current_driver == :selenium # Capybara.current_session.driver.browser.manage.window.resize_to(width, height) # elsif Capybara.current_driver == :poltergeist # Capybara.current_session.driver.resize(width, height) # end # end # # begin # window_sizes = { # :'320' => { :width => 320, :height => 480 }, # :'600' => { :width => 600, :height => 769 }, # :'770' => { :width => 770, :height => 1025 }, # :'1026' => { :width => 1026, :height => 1200 }, # } # window_sizes.default = { :width => 994, :height=> 689 } # size = window_sizes[(ENV['DEVICE'] || 'default').to_sym] # set_window_size(size[:width], size[:height]) # end
Version data entries
16 entries across 16 versions & 1 rubygems