Module: Selenium::WebDriver::DriverExtensions::HasPermissions Private

Defined in:
rb/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#add_permission(name, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set one permission.

Parameters:

  • name (String)

    which permission to set

  • value (String)

    what to set the permission to



31
32
33
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb', line 31

def add_permission(name, value)
  @bridge.set_permission(name, value)
end

#add_permissions(opt) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set multiple permissions.

Parameters:

  • opt (Hash)

    key/value pairs to set permissions



41
42
43
44
45
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_permissions.rb', line 41

def add_permissions(opt)
  opt.each do |key, value|
    @bridge.set_permission(key, value)
  end
end