module Watir::Navigation
Public Instance Methods
back()
click to toggle source
Navigates back in history.
# File lib/watir/navigation.rb, line 26 def back @driver.navigate.back @after_hooks.run end
forward()
click to toggle source
Navigates forward in history.
# File lib/watir/navigation.rb, line 35 def forward @driver.navigate.forward @after_hooks.run end
goto(uri)
click to toggle source
Goes to the given URL.
@example
browser.goto "watir.github.io"
@param [String] uri The url. @return [String] The url you end up at.
# File lib/watir/navigation.rb, line 13 def goto(uri) uri = "http://#{uri}" unless uri =~ URI::DEFAULT_PARSER.make_regexp @driver.navigate.to uri @after_hooks.run uri end
refresh()
click to toggle source
Refreshes current page.
# File lib/watir/navigation.rb, line 44 def refresh @driver.navigate.refresh @after_hooks.run end