Module: TerminusSpec::Platforms::SeleniumWebDriver

Defined in:
lib/terminus_spec/platform_selenium.rb,
lib/terminus_spec/platform_selenium/platform_object.rb,
lib/terminus_spec/platform_selenium/web_objects/all.rb,
lib/terminus_spec/platform_selenium/web_objects/link.rb,
lib/terminus_spec/platform_selenium/web_objects/button.rb,
lib/terminus_spec/platform_selenium/web_objects/text_field.rb

Defined Under Namespace

Modules: Button, Link, TextField, WebObject Classes: PlatformObject

Class Method Summary collapse

Class Method Details

.create_platform_object_for(browser) ⇒ Object



5
6
7
8
# File 'lib/terminus_spec/platform_selenium.rb', line 5

def self.create_platform_object_for(browser)
  require 'terminus_spec/platform_selenium/platform_object'
  return SeleniumWebDriver::PlatformObject.new(browser)
end

.works_for?(browser) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/terminus_spec/platform_selenium.rb', line 10

def self.works_for?(browser)
  browser.is_a?(Selenium::WebDriver::Driver)
end