Class: Selenium::WebPage

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

Overview

Class that models a web page with a title

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(browser, expected_title) ⇒ WebPage

Returns a new instance of WebPage.



8
9
10
11
# File 'lib/selenium/web_page.rb', line 8

def initialize(browser, expected_title)
  @browser = browser
  @expected_title = expected_title
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/selenium/web_page.rb', line 6

def title
  @title
end