[フレーム]

Class: Selenium::WebDriver::Navigation

Inherits:
Object
  • Object
  • Selenium::WebDriver::Navigation
show all
Defined in:
lib/selenium/webdriver/navigation.rb

Instance Method Summary collapse

Constructor Details

#initialize(driver) ⇒ Navigation

Returns a new instance of Navigation.

5
6
7
# File 'lib/selenium/webdriver/navigation.rb', line 5
def initialize(driver)
 @bridge = driver.bridge
end

Instance Method Details

#backObject

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

21
22
23
# File 'lib/selenium/webdriver/navigation.rb', line 21
def back
 @bridge.goBack
end

#forwardObject

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

29
30
31
# File 'lib/selenium/webdriver/navigation.rb', line 29
def forward
 @bridge.goForward
end

#refreshObject

Refresh the current page.

37
38
39
# File 'lib/selenium/webdriver/navigation.rb', line 37
def refresh
 @bridge.refresh
end

#to(url) ⇒ Object

Navigate to the given URL

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

AltStyle によって変換されたページ (->オリジナル) /