Module: TerminusSpec::Platforms::WatirWebDriver
- Defined in:
- lib/terminus_spec/platform_watir.rb,
lib/terminus_spec/platform_watir/platform_object.rb,
lib/terminus_spec/platform_watir/web_objects/all.rb,
lib/terminus_spec/platform_watir/web_objects/text_field.rb
Defined Under Namespace
Modules: TextField, WebObject
Classes: PlatformObject
Class Method Summary
collapse
Class Method Details
5
6
7
8
|
# File 'lib/terminus_spec/platform_watir.rb', line 5
def self.create_platform_object_for(browser)
require 'terminus_spec/platform_watir/platform_object'
return WatirWebDriver::PlatformObject.new(browser)
end
|
.works_for?(browser) ⇒ Boolean
10
11
12
|
# File 'lib/terminus_spec/platform_watir.rb', line 10
def self.works_for?(browser)
browser.is_a?(Watir::Browser)
end
|