Class: Appium::Core::Base::DriverSettings Private

Inherits:
Object
  • Object
show all
Defined in:
lib/appium_lib_core/common/base/driver_settings.rb

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

Instance Method Summary collapse

Constructor Details

#initialize(bridge) ⇒ DriverSettings

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 a new instance of DriverSettings.


23
24
25
# File 'lib/appium_lib_core/common/base/driver_settings.rb', line 23

def initialize(bridge)
  @bridge = bridge
end

Instance Method Details

#getObject

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.

Get appium Settings for current test session.

Examples:


@driver.settings.get

33
34
35
# File 'lib/appium_lib_core/common/base/driver_settings.rb', line 33

def get
  @bridge.get_settings
end

#update(settings) ⇒ 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.

Update Appium Settings for current test session

Examples:


@driver.settings.update({'allowInvisibleElements': true})

Parameters:

  • settings (Hash)

    Settings to update, keys are settings, values to value to set each setting to


45
46
47
# File 'lib/appium_lib_core/common/base/driver_settings.rb', line 45

def update(settings)
  @bridge.update_settings(settings)
end