Class: Webrat::SeleniumResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/webrat/selenium/selenium_session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session, body) ⇒ SeleniumResponse

Returns a new instance of SeleniumResponse.



13
14
15
16
# File 'lib/webrat/selenium/selenium_session.rb', line 13

def initialize(session, body)
  @session = session
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



10
11
12
# File 'lib/webrat/selenium/selenium_session.rb', line 10

def body
  @body
end

#sessionObject (readonly)

Returns the value of attribute session.



11
12
13
# File 'lib/webrat/selenium/selenium_session.rb', line 11

def session
  @session
end

Instance Method Details

#seleniumObject



18
19
20
# File 'lib/webrat/selenium/selenium_session.rb', line 18

def selenium
  session.selenium
end