Class: Capybara::Session
- Inherits:
-
Object
- Object
- Capybara::Session
- Defined in:
- lib/extensions/capybara-extensions.rb
Instance Method Summary collapse
- #add_cookie(attribs) ⇒ Object
-
#cookie_named(name) ⇒ Hash?
Get the cookie with the given name.
-
#cookies ⇒ Array<Hash>
Get all cookies.
- #delete_all_cookies ⇒ Object
- #delete_cookie(cookie) ⇒ Object
- #delete_cookies_in_domain(domain) ⇒ Object
Instance Method Details
#add_cookie(attribs) ⇒ Object
61 62 63 |
# File 'lib/extensions/capybara-extensions.rb', line 61 def (attribs) driver.(attribs) end |
#cookie_named(name) ⇒ Hash?
Get the cookie with the given name
49 50 51 |
# File 'lib/extensions/capybara-extensions.rb', line 49 def (name) driver.(name) end |
#cookies ⇒ Array<Hash>
Get all cookies
39 40 41 |
# File 'lib/extensions/capybara-extensions.rb', line 39 def driver. end |
#delete_all_cookies ⇒ Object
57 58 59 |
# File 'lib/extensions/capybara-extensions.rb', line 57 def driver. end |
#delete_cookie(cookie) ⇒ Object
53 54 55 |
# File 'lib/extensions/capybara-extensions.rb', line 53 def () driver.() end |
#delete_cookies_in_domain(domain) ⇒ Object
65 66 67 |
# File 'lib/extensions/capybara-extensions.rb', line 65 def (domain) driver.(domain) end |