Class: Fluent::Platforms::SeleniumWebDriver::PlatformObject
- Inherits:
-
Object
- Object
- Fluent::Platforms::SeleniumWebDriver::PlatformObject
- Defined in:
- lib/fluent/platform_selenium/platform_object.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
Instance Method Summary collapse
-
#initialize(driver) ⇒ PlatformObject
constructor
A new instance of PlatformObject.
-
#visit(url) ⇒ Object
Browser-Level Actions ##.
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
#driver ⇒ Object (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 |