Class: ShowMeTheCookies::Selenium
- Inherits:
-
Object
- Object
- ShowMeTheCookies::Selenium
- Defined in:
- lib/show_me_the_cookies/selenium.rb
Instance Method Summary collapse
- #delete_cookie(cookie_name) ⇒ Object
-
#initialize(driver) ⇒ Selenium
constructor
A new instance of Selenium.
- #show_me_the_cookies ⇒ Object
Constructor Details
#initialize(driver) ⇒ Selenium
Returns a new instance of Selenium.
2 3 4 5 |
# File 'lib/show_me_the_cookies/selenium.rb', line 2 def initialize(driver) @browser = driver.browser self end |
Instance Method Details
#delete_cookie(cookie_name) ⇒ Object
11 12 13 |
# File 'lib/show_me_the_cookies/selenium.rb', line 11 def () @browser.manage.() end |
#show_me_the_cookies ⇒ Object
7 8 9 |
# File 'lib/show_me_the_cookies/selenium.rb', line 7 def @browser.manage..map(&:inspect).join("\n") end |