class Selenium::WebDriver::Navigation

Public Class Methods

new(bridge) click to toggle source
# File lib/selenium/webdriver/common/navigation.rb, line 5
def initialize(bridge)
  @bridge = bridge
end

Public Instance Methods

back() click to toggle source

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

# File lib/selenium/webdriver/common/navigation.rb, line 21
def back
  @bridge.goBack
end
forward() click to toggle source

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

# File lib/selenium/webdriver/common/navigation.rb, line 29
def forward
  @bridge.goForward
end
refresh() click to toggle source

Refresh the current page.

# File lib/selenium/webdriver/common/navigation.rb, line 37
def refresh
  @bridge.refresh
end
to(url) click to toggle source

Navigate to the given URL

# File lib/selenium/webdriver/common/navigation.rb, line 13
def to(url)
  @bridge.get url
end