Class: Selenium::WebDriver::Navigation
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Navigation
- Defined in:
- lib/selenium/webdriver/common/navigation.rb
Instance Method Summary collapse
-
#back ⇒ Object
Move back a single entry in the browser’s history.
-
#forward ⇒ Object
Move forward a single entry in the browser’s history.
-
#initialize(bridge) ⇒ Navigation
constructor
A new instance of Navigation.
-
#refresh ⇒ Object
Refresh the current page.
-
#to(url) ⇒ Object
Navigate to the given URL.
Constructor Details
#initialize(bridge) ⇒ Navigation
Returns a new instance of Navigation.
24 25 26 |
# File 'lib/selenium/webdriver/common/navigation.rb', line 24 def initialize(bridge) @bridge = bridge end |
Instance Method Details
#back ⇒ Object
Move back a single entry in the browser’s history.
40 41 42 |
# File 'lib/selenium/webdriver/common/navigation.rb', line 40 def back @bridge.goBack end |
#forward ⇒ Object
Move forward a single entry in the browser’s history.
48 49 50 |
# File 'lib/selenium/webdriver/common/navigation.rb', line 48 def forward @bridge.goForward end |
#refresh ⇒ Object
Refresh the current page.
56 57 58 |
# File 'lib/selenium/webdriver/common/navigation.rb', line 56 def refresh @bridge.refresh end |
#to(url) ⇒ Object
Navigate to the given URL
32 33 34 |
# File 'lib/selenium/webdriver/common/navigation.rb', line 32 def to(url) @bridge.get url end |