Exception: Selenium::WebDriver::Error::ServerError
- Inherits:
 - 
      StandardError
      
        
- Object
 - StandardError
 - Selenium::WebDriver::Error::ServerError
 
 
- Defined in:
 - lib/selenium/webdriver/remote/server_error.rb
 
Instance Method Summary collapse
- 
  
    
      #initialize(response)  ⇒ ServerError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ServerError.
 
Constructor Details
#initialize(response) ⇒ ServerError
Returns a new instance of ServerError.
      24 25 26 27 28 29 30  | 
    
      # File 'lib/selenium/webdriver/remote/server_error.rb', line 24 def initialize(response) if response.is_a? String super else super("status code #{response.code}; payload #{response.payload}") end end  |