Sha256: 4ac1fcafdadc1d4229ee1e7b634cc245c6af5479db56f595d48ad127a6e4d01c

Contents?: true

Size: 450 Bytes

Versions: 6

Compression:

Stored size: 450 Bytes

Contents

module Capybara
  class Session
    def reset!
      # Next line is a work around for issue https://github.com/jnicklas/capybara/issues/1237
      if @touched && driver.browser_initialized?
        driver.reset!
        # Ugly hack to not run this assertion for Appium
        assert_no_selector(:xpath, "/html/body/*") unless driver.instance_of? Appium::Capybara::Driver
        @touched = false
      end
      raise_server_error!
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appium_capybara-1.1.0 lib/appium_capybara/ext/session_ext.rb
appium_capybara-1.0.0 lib/appium_capybara/ext/session_ext.rb
appium_capybara-0.1.2 lib/appium_capybara/ext/session_ext.rb
appium_capybara-0.1.1 lib/appium_capybara/ext/session_ext.rb
appium_capybara-0.1.0 lib/appium_capybara/ext/session_ext.rb
appium_capybara-0.0.4 lib/appium_capybara/ext/session_ext.rb