gridium 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/driver.rb +15 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32115dbdf2dd2771f65ef572841160955d84d31a
4
- data.tar.gz: eec6da5442e752ce320978eded3d509f5d0d41a5
3
+ metadata.gz: cf4d3a157e28f19e0890f63f051a747a320ea2b6
4
+ data.tar.gz: c9c2bdc8e4b4a106f531f0c5a52986808c8cfb1e
5
5
  SHA512:
6
- metadata.gz: 51f8f95300b4910e0a5d2ee2ff288f47bdaa25381c534abaf46e57eadd07b2a062e3b3eb200021611ac53d36450ed42a4a936d9437b957a7c7cf0ec478eaf0e5
7
- data.tar.gz: e75adc2c2cb937c1928a0f8b2a4369451b678d4baca7e9011b993ace8f7a79daacd0fb1f4a6b80b5deb383ee4c3642be60596351680e0033f6e2a2c124aa3cbb
6
+ metadata.gz: 34f544da1a6a93e8e7156e0d68cfc57c3fccee6ab80102a225932a36d09c3f87353b2995b371367a74b1b04ee3a8fc1ee491c083e61bb8d043d63781266bf674
7
+ data.tar.gz: 631a9937560efb72a2dcd4ea6f36813bf18429cc090678bca267e4c9f1909886295d5ee0c337205666f07ae5f2fab39aaa9cf1f4d457dcf41e2f02009d951a2b
data/lib/driver.rb CHANGED
@@ -274,4 +274,19 @@ class Driver
274
274
  Log.debug("[Gridium::Driver] Now back to Parent Frame")
275
275
  end
276
276
 
277
+ def self.delete_cookie(cookie)
278
+ Driver.driver.manage.delete_cookie(cookie)
279
+ end
280
+
281
+ def self.get_cookie(cookie_name)
282
+ Driver.driver.manage.all_cookies().each do |cookie|
283
+ # match cookie
284
+ if cookie[:name] == cookie_name
285
+ return cookie
286
+ end
287
+ end
288
+
289
+ return nil
290
+ end
291
+
277
292
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Urban