Sha256: c9aaeca5d3f4babd5aa6c82541e92eb3646d6398c66b10a13c5cd35fd86afb4a
Contents?: true
Size: 797 Bytes
Versions: 9
Compression:
Stored size: 797 Bytes
Contents
# frozen_string_literal: true require 'capybara/selenium/nodes/marionette_node' module Capybara::Selenium::Driver::MarionetteDriver def resize_window_to(handle, width, height) within_given_window(handle) do # Don't set the size if already set - See https://github.com/mozilla/geckodriver/issues/643 if window_size(handle) == [width, height] {} else super end end end def reset! # Use instance variable directly so we avoid starting the browser just to reset the session return unless @browser switch_to_window(window_handles.first) window_handles.slice(1..-1).each { |win| close_window(win) } super end private def build_node(native_node) ::Capybara::Selenium::MarionetteNode.new(self, native_node) end end
Version data entries
9 entries across 9 versions & 2 rubygems