123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::BiDi::Protocol::Bluetooth Private

Relationships & Source Files
Namespace Children
Classes:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Domain
Instance Chain:
self, Domain
Inherits: Selenium::WebDriver::BiDi::Protocol::Domain
Defined in: rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb

Overview

Constant Summary

Class Method Summary

Domain - Inherited

Instance Method Summary

Constructor Details

This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain

Instance Method Details

#disable_simulation(context:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 350

def disable_simulation(context:)
  params = DisableSimulationParameters.new(context: context)
  execute(cmd: 'bluetooth.disableSimulation', params: params)
end

#handle_request_device_prompt(context:, prompt:, accept:, device: Serialization::UNSET)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 330

def handle_request_device_prompt(context:, prompt:, accept:, device: Serialization::UNSET)
  params = HandleRequestDevicePromptParameters.build(
    context: context,
    prompt: prompt,
    accept: accept,
    device: device
  )
  execute(cmd: 'bluetooth.handleRequestDevicePrompt', params: params)
end

#simulate_adapter(context:, state:, le_supported: Serialization::UNSET)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 342

def simulate_adapter(context:, state:, le_supported: Serialization::UNSET)
  Serialization.validate!('state', state, Bluetooth::SIMULATE_ADAPTER_PARAMETERS_STATE)
  params = SimulateAdapterParameters.new(context: context, le_supported: le_supported, state: state)
  execute(cmd: 'bluetooth.simulateAdapter', params: params)
end

#simulate_advertisement(context:, scan_entry:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 370

def simulate_advertisement(context:, scan_entry:)
  params = SimulateAdvertisementParameters.new(context: context, scan_entry: scan_entry)
  execute(cmd: 'bluetooth.simulateAdvertisement', params: params)
end

#simulate_characteristic(context:, address:, service_uuid:, characteristic_uuid:, type:, characteristic_properties: Serialization::UNSET)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 399

def simulate_characteristic(
  context:,
  address:,
  service_uuid:,
  characteristic_uuid:,
  type:,
  characteristic_properties: Serialization::UNSET
)
  Serialization.validate!('type', type, Bluetooth::SIMULATE_CHARACTERISTIC_PARAMETERS_TYPE)
  params = SimulateCharacteristicParameters.new(
    context: context,
    address: address,
    service_uuid: service_uuid,
    characteristic_uuid: characteristic_uuid,
    characteristic_properties: characteristic_properties,
    type: type
  )
  execute(cmd: 'bluetooth.simulateCharacteristic', params: params)
end

#simulate_characteristic_response(context:, address:, service_uuid:, characteristic_uuid:, type:, code:, data: Serialization::UNSET)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 421

def simulate_characteristic_response(
  context:,
  address:,
  service_uuid:,
  characteristic_uuid:,
  type:,
  code:,
  data: Serialization::UNSET
)
  Serialization.validate!('type', type, Bluetooth::SIMULATE_CHARACTERISTIC_RESPONSE_PARAMETERS_TYPE)
  params = SimulateCharacteristicResponseParameters.new(
    context: context,
    address: address,
    service_uuid: service_uuid,
    characteristic_uuid: characteristic_uuid,
    type: type,
    code: code,
    data: data
  )
  execute(cmd: 'bluetooth.simulateCharacteristicResponse', params: params)
end

#simulate_descriptor(context:, address:, service_uuid:, characteristic_uuid:, descriptor_uuid:, type:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 445

def simulate_descriptor(context:, address:, service_uuid:, characteristic_uuid:, descriptor_uuid:, type:)
  Serialization.validate!('type', type, Bluetooth::SIMULATE_DESCRIPTOR_PARAMETERS_TYPE)
  params = SimulateDescriptorParameters.new(
    context: context,
    address: address,
    service_uuid: service_uuid,
    characteristic_uuid: characteristic_uuid,
    descriptor_uuid: descriptor_uuid,
    type: type
  )
  execute(cmd: 'bluetooth.simulateDescriptor', params: params)
end

#simulate_descriptor_response(context:, address:, service_uuid:, characteristic_uuid:, descriptor_uuid:, type:, code:, data: Serialization::UNSET)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 460

def simulate_descriptor_response(
  context:,
  address:,
  service_uuid:,
  characteristic_uuid:,
  descriptor_uuid:,
  type:,
  code:,
  data: Serialization::UNSET
)
  Serialization.validate!('type', type, Bluetooth::SIMULATE_DESCRIPTOR_RESPONSE_PARAMETERS_TYPE)
  params = SimulateDescriptorResponseParameters.new(
    context: context,
    address: address,
    service_uuid: service_uuid,
    characteristic_uuid: characteristic_uuid,
    descriptor_uuid: descriptor_uuid,
    type: type,
    code: code,
    data: data
  )
  execute(cmd: 'bluetooth.simulateDescriptorResponse', params: params)
end

#simulate_gatt_connection_response(context:, address:, code:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 377

def simulate_gatt_connection_response(context:, address:, code:)
  params = SimulateGattConnectionResponseParameters.new(context: context, address: address, code: code)
  execute(cmd: 'bluetooth.simulateGattConnectionResponse', params: params)
end

#simulate_gatt_disconnection(context:, address:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 384

def simulate_gatt_disconnection(context:, address:)
  params = SimulateGattDisconnectionParameters.new(context: context, address: address)
  execute(cmd: 'bluetooth.simulateGattDisconnection', params: params)
end

#simulate_preconnected_peripheral(context:, address:, name:, manufacturer_data:, known_service_uuids:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 357

def simulate_preconnected_peripheral(context:, address:, name:, manufacturer_data:, known_service_uuids:)
  params = SimulatePreconnectedPeripheralParameters.new(
    context: context,
    address: address,
    name: name,
    manufacturer_data: manufacturer_data,
    known_service_uuids: known_service_uuids
  )
  execute(cmd: 'bluetooth.simulatePreconnectedPeripheral', params: params)
end

#simulate_service(context:, address:, uuid:, type:)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/protocol/bluetooth.rb', line 391

def simulate_service(context:, address:, uuid:, type:)
  Serialization.validate!('type', type, Bluetooth::SIMULATE_SERVICE_PARAMETERS_TYPE)
  params = SimulateServiceParameters.new(context: context, address: address, uuid: uuid, type: type)
  execute(cmd: 'bluetooth.simulateService', params: params)
end