lib/capybara/poltergeist/browser.rb in poltergeist-1.2.0 vs lib/capybara/poltergeist/browser.rb in poltergeist-1.3.0

- old
+ new

@@ -4,11 +4,12 @@ module Capybara::Poltergeist class Browser ERROR_MAPPINGS = { "Poltergeist.JavascriptError" => JavascriptError, - "Poltergeist.FrameNotFound" => FrameNotFound + "Poltergeist.FrameNotFound" => FrameNotFound, + "Poltergeist.InvalidSelector" => InvalidSelector } attr_reader :server, :client, :logger def initialize(server, client, logger = nil) @@ -193,9 +194,13 @@ command 'set_cookie', cookie end def remove_cookie(name) command 'remove_cookie', name + end + + def cookies_enabled=(flag) + command 'cookies_enabled', !!flag end def js_errors=(val) command 'set_js_errors', !!val end