Class: ShowMeTheCookies::Culerity

Inherits:
Object
  • Object
show all
Defined in:
lib/show_me_the_cookies/culerity.rb

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ Culerity

Returns a new instance of Culerity.



2
3
4
# File 'lib/show_me_the_cookies/culerity.rb', line 2

def initialize(driver)
  @browser = driver.browser
end

Instance Method Details



10
11
12
# File 'lib/show_me_the_cookies/culerity.rb', line 10

def delete_cookie(cookie_name)
  @browser.remove_cookie('localhost', cookie_name)
end

#show_me_the_cookiesObject



6
7
8
# File 'lib/show_me_the_cookies/culerity.rb', line 6

def show_me_the_cookies
  @browser.cookies.send_remote(:inspect)
end