Sha256: 1516f0cdc13f830b68e34b0060e0983e9fed568565a6849970085b72cdb0ae3e

Contents?: true

Size: 561 Bytes

Versions: 23

Compression:

Stored size: 561 Bytes

Contents

# -*- coding: utf-8 -*-
class OperaWatir::Spatnav

  attr_accessor :browser

  def initialize(browser)
    self.browser = browser
  end

  # FIXME: These should be implemented as proper methods in
  # OperaDriver.

  def up
    driver.operaAction('Navigate up')
  end

  def down
    driver.operaAction('Navigate down')
  end

  def left
    driver.operaAction('Navigate left')
  end

  def right
    driver.operaAction('Navigate right')
  end

  def activate
    driver.operaAction('Activate element')
  end

private
  def driver
    browser.driver
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
operawatir-0.7.pre4-jruby lib/operawatir/spatnav.rb
operawatir-0.7.pre3-jruby lib/operawatir/spatnav.rb
operawatir-0.7.pre2-jruby lib/operawatir/spatnav.rb
operawatir-0.7.pre1-jruby lib/operawatir/spatnav.rb
operawatir-0.6.pre1-jruby lib/operawatir/spatnav.rb
operawatir-0.5.1-jruby lib/operawatir/spatnav.rb
operawatir-0.5-jruby lib/operawatir/spatnav.rb
operawatir-0.5.pre3-jruby lib/operawatir/spatnav.rb
operawatir-0.5.pre2-jruby lib/operawatir/spatnav.rb
operawatir-0.5.pre1-jruby lib/operawatir/spatnav.rb
operawatir-0.4.3.pre1-jruby lib/operawatir/spatnav.rb
operawatir-0.4.2-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre7-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre6-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre5-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre4-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre3-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre2-jruby lib/operawatir/spatnav.rb
operawatir-0.4.1.pre1-jruby lib/operawatir/spatnav.rb