Module: Fluent::Platforms::SeleniumWebDriver

Defined in:
lib/fluent/platform_selenium.rb,
lib/fluent/platform_selenium/platform_object.rb

Defined Under Namespace

Classes: PlatformObject

Class Method Summary collapse

Class Method Details

.create_platform_object_for(driver) ⇒ Object



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

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

.works_with?(driver) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.works_with?(driver)
  driver.is_a?(::Selenium::WebDriver::Driver)
end