Module: Capybara::PageObject
- Defined in:
- lib/capybara-pageobject.rb,
lib/capybara-pageobject/page.rb,
lib/capybara-pageobject/action.rb,
lib/capybara-pageobject/element.rb,
lib/capybara-pageobject/version.rb,
lib/capybara-pageobject/website.rb,
lib/capybara-pageobject/attribute.rb,
lib/capybara-pageobject/url_parser.rb,
lib/capybara-pageobject/capybara_helper.rb
Defined Under Namespace
Modules: CapybaraHelper, IncludedMethods
Classes: Action, Attribute, Element, Page, UrlParser, Website
Constant Summary
collapse
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
17
18
19
|
# File 'lib/capybara-pageobject.rb', line 17
def configure
yield self
end
|
.current_website ⇒ Object
25
26
27
|
# File 'lib/capybara-pageobject.rb', line 25
def current_website
@website ||= instantiate_website Capybara::PageObject::Website
end
|
.page_file=(file) ⇒ Object
21
22
23
|
# File 'lib/capybara-pageobject.rb', line 21
def page_file= file
@page_file = file
end
|
.website_class=(klass) ⇒ Object
29
30
31
32
|
# File 'lib/capybara-pageobject.rb', line 29
def website_class= klass
raise "website class #{klass} should extend Capybara::PageObject::Website" unless klass.ancestors.include?(Capybara::PageObject::Website)
@website = instantiate_website klass
end
|