Sha256: ca19b66c9dc13983502f9a1cd5c06590d96bbe4a8fc3b02171475c74587f7826

Contents?: true

Size: 649 Bytes

Versions: 11

Compression:

Stored size: 649 Bytes

Contents

module Selenium
  module WebDriver
    class Navigation

      def initialize(driver)
        @bridge = driver.bridge
      end

      #
      # Navigate to the given URL
      #

      def to(url)
        @bridge.get url
      end

      #
      # Move back a single entry in the browser's history.
      #

      def back
        @bridge.goBack
      end

      #
      # Move forward a single entry in the browser's history.
      #

      def forward
        @bridge.goForward
      end

      #
      # Refresh the current page.
      #

      def refresh
        @bridge.refresh
      end

    end # Navigation
  end # WebDriver
end # Selenium

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
selenium-webdriver-0.0.28 lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.27 lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.26 lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.25 lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.24 common/src/rb/lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.23 common/src/rb/lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.22 common/src/rb/lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.21 common/src/rb/lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.20 common/src/rb/lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.19 common/src/rb/lib/selenium/webdriver/navigation.rb
selenium-webdriver-0.0.18 common/src/rb/lib/selenium/webdriver/navigation.rb