Module: Selenium::WebDriver::DriverExtensions::HasContext
- Defined in:
 - lib/selenium/webdriver/common/driver_extensions/has_context.rb
 
Instance Method Summary collapse
- #context ⇒ Object
 - 
  
    
      #context=(value)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Sets the context that Selenium commands are running in using a ‘with` statement.
 
Instance Method Details
#context ⇒ Object
      36 37 38  | 
    
      # File 'lib/selenium/webdriver/common/driver_extensions/has_context.rb', line 36 def context @bridge.context end  | 
  
#context=(value) ⇒ Object
Sets the context that Selenium commands are running in using
a `with` statement. The state of the context on the server is
saved before entering the block, and restored upon exiting it.
  
      32 33 34  | 
    
      # File 'lib/selenium/webdriver/common/driver_extensions/has_context.rb', line 32 def context=(value) @bridge.context = value end  |