123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

Instance Method Details

#add_permission(name, value)

Set one permission.

Parameters:

  • name (String)

    which permission to set

  • value (String)

    what to set the permission to

[ GitHub ]

  
# 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)

Set multiple permissions.

Parameters:

  • opt (Hash)

    key/value pairs to set permissions

[ GitHub ]

  
# 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