class Selenium::WebDriver::Navigation

Public Class Methods

new(bridge) click to toggle source
# File lib/selenium/webdriver/common/navigation.rb, line 23
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 39
def back
  @bridge.go_back
end
forward() click to toggle source

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

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

Refresh the current page.

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

Navigate to the given URL

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