Class: Fluent::Platforms::SeleniumWebDriver::PlatformObject

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/platform_selenium/platform_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ PlatformObject

Returns a new instance of PlatformObject.



8
9
10
# File 'lib/fluent/platform_selenium/platform_object.rb', line 8

def initialize(driver)
  @driver = driver
end

Instance Attribute Details

#driverObject (readonly)

Returns the value of attribute driver.



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

def driver
  @driver
end

Instance Method Details

#visit(url) ⇒ Object

Browser-Level Actions ##



14
15
16
# File 'lib/fluent/platform_selenium/platform_object.rb', line 14

def visit(url)
  driver.navigate.to(url)
end