lib/watir-classic/cookies.rb in watir-classic-3.2.0 vs lib/watir-classic/cookies.rb in watir-classic-3.3.0

- old
+ new

@@ -37,10 +37,11 @@ # make sure that the cookie gets deleted # there's got to be some easier way to do this uri = URI.parse(@page_container.url) domain = uri.host + return unless domain paths = uri.path.split("/").reduce([]) do |paths, path| paths << "#{paths.last}/#{path}".squeeze("/") end << "/" @@ -69,12 +70,13 @@ def clear each {|cookie| delete cookie[:name]} end + private + def delete_with_options name, options={} add name, nil, options end - private :delete_with_options end end