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.
      23 24 25  | 
    
      # File 'lib/selenium/webdriver/common/navigation.rb', line 23 def initialize(bridge) @bridge = bridge end  | 
  
Instance Method Details
#back ⇒ Object
Move back a single entry in the browser’s history.
      39 40 41  | 
    
      # File 'lib/selenium/webdriver/common/navigation.rb', line 39 def back @bridge.go_back end  | 
  
#forward ⇒ Object
Move forward a single entry in the browser’s history.
      47 48 49  | 
    
      # File 'lib/selenium/webdriver/common/navigation.rb', line 47 def forward @bridge.go_forward end  | 
  
#refresh ⇒ Object
Refresh the current page.
      55 56 57  | 
    
      # File 'lib/selenium/webdriver/common/navigation.rb', line 55 def refresh @bridge.refresh end  | 
  
#to(url) ⇒ Object
Navigate to the given URL
      31 32 33  | 
    
      # File 'lib/selenium/webdriver/common/navigation.rb', line 31 def to(url) @bridge.get url end  |