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

Included in:
Safari::Driver
Defined in:
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

#permissionsHash

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.

Returns permissions.

Returns:

  • (Hash)

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

def permissions
  @bridge.permissions
end

#permissions=(permissions) ⇒ 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.

Sets permissions.

Examples:

driver.permissions = {'getUserMedia' => true}

Parameters:

  • permissions (Hash<Symbol, Boolean>)

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

def permissions=(permissions)
  @bridge.permissions = permissions
end