Class: Selenium::WebDriver::BiDi::Protocol::UserAgentClientHints Private

Inherits:
Domain
  • Object
show all
Defined in:
lib/selenium/webdriver/bidi/protocol/user_agent_client_hints.rb

Overview

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.

Constant Summary collapse

ClientHintsMetadata =

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

Serialization::Record.define(
  brands: {wire_key: 'brands', required: false, ref: 'UserAgentClientHints::BrandVersion', list: true},
  full_version_list: {
    wire_key: 'fullVersionList',
    required: false,
    ref: 'UserAgentClientHints::BrandVersion',
    list: true
  },
  platform: {wire_key: 'platform', required: false, primitive: 'string'},
  platform_version: {wire_key: 'platformVersion', required: false, primitive: 'string'},
  architecture: {wire_key: 'architecture', required: false, primitive: 'string'},
  model: {wire_key: 'model', required: false, primitive: 'string'},
  mobile: {wire_key: 'mobile', required: false, primitive: 'boolean'},
  bitness: {wire_key: 'bitness', required: false, primitive: 'string'},
  wow64: {wire_key: 'wow64', required: false, primitive: 'boolean'},
  form_factors: {wire_key: 'formFactors', required: false, list: true}
)
BrandVersion =

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

Serialization::Record.define(
  brand: {wire_key: 'brand', primitive: 'string'},
  version: {wire_key: 'version', primitive: 'string'}
)
SetClientHintsOverrideCommandParams =

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

Serialization::Record.define(
  client_hints: {wire_key: 'clientHints', nullable: true, ref: 'UserAgentClientHints::ClientHintsMetadata'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)

Instance Method Summary collapse

Methods inherited from Domain

#initialize

Constructor Details

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

Instance Method Details

#brand_versionObject

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.



68
# File 'lib/selenium/webdriver/bidi/protocol/user_agent_client_hints.rb', line 68

def brand_version(**) = BrandVersion.new(**)

#client_hints_metadataObject

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.



67
# File 'lib/selenium/webdriver/bidi/protocol/user_agent_client_hints.rb', line 67

def (**) = ClientHintsMetadata.new(**)

#set_client_hints_override(client_hints:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ 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.



72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/selenium/webdriver/bidi/protocol/user_agent_client_hints.rb', line 72

def set_client_hints_override(
  client_hints:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetClientHintsOverrideCommandParams.new(
    client_hints: client_hints,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'userAgentClientHints.setClientHintsOverride', params: params)
end