module Selenium::WebDriver::DriverExtensions::HasContext

Public Instance Methods

context() click to toggle source
# File lib/selenium/webdriver/common/driver_extensions/has_context.rb, line 38
def context
  @bridge.context
end
context=(value) click to toggle source

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.

@param [String] name which permission to set @param [String] value what to set the permission to

# File lib/selenium/webdriver/common/driver_extensions/has_context.rb, line 34
def context=(value)
  @bridge.context = value
end