class Selenium::WebDriver::Timeouts

def implicit_wait

def implicit_wait
  Float(@bridge.timeouts['implicit']) / 1000
end

def implicit_wait=(seconds)

def implicit_wait=(seconds)
  @bridge.timeouts = {'implicit' => Integer(seconds * 1000)}
end

def initialize(bridge)

def initialize(bridge)
  @bridge = bridge
end

def page_load

def page_load
  Float(@bridge.timeouts['pageLoad']) / 1000
end

def page_load=(seconds)

def page_load=(seconds)
  @bridge.timeouts = {'pageLoad' => Integer(seconds * 1000)}
end

def script

def script
  Float(@bridge.timeouts['script']) / 1000
end

def script=(seconds)

def script=(seconds)
  @bridge.timeouts = {'script' => Integer(seconds * 1000)}
end