gridium 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/driver.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf4d3a157e28f19e0890f63f051a747a320ea2b6
|
4
|
+
data.tar.gz: c9c2bdc8e4b4a106f531f0c5a52986808c8cfb1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|