lib/selenium/webdriver/ie/bridge.rb in selenium-webdriver-0.0.29 vs lib/selenium/webdriver/ie/bridge.rb in selenium-webdriver-0.1.0
- old
+ new
@@ -7,18 +7,18 @@
#
class Bridge
include Util
- def initialize
+ def initialize(opts = {})
ptr_ref = FFI::MemoryPointer.new :pointer
check_error_code Lib.wdNewDriverInstance(ptr_ref),
"could not create driver instance"
@driver_pointer = ptr_ref.get_pointer(0)
- @speed = :fast
+ @speed = opts[:speed] || :fast
end
def browser
:internet_explorer
end
@@ -589,6 +589,6 @@
end
end # Bridge
end # IE
end # WebDriver
-end # Selenium
\ No newline at end of file
+end # Selenium