Class: Selenium::WebDriver::BiDi::Protocol::Emulation Private

Inherits:
Domain
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/bidi/protocol/emulation.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.

Defined Under Namespace

Classes: SetGeolocationOverrideParameters

Constant Summary collapse

FORCED_COLORS_MODE_THEME =

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.

{
  light: 'light',
  dark: 'dark'
}.freeze
SCREEN_ORIENTATION_NATURAL =

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.

{
  portrait: 'portrait',
  landscape: 'landscape'
}.freeze
SCREEN_ORIENTATION_TYPE =

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.

{
  portrait_primary: 'portrait-primary',
  portrait_secondary: 'portrait-secondary',
  landscape_primary: 'landscape-primary',
  landscape_secondary: 'landscape-secondary'
}.freeze
TEXT_LAYOUT_MODE =

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.

{
  mobile: 'mobile'
}.freeze
MEDIA_FEATURES_ANY_HOVER =

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.

{
  none: 'none',
  hover: 'hover'
}.freeze
MEDIA_FEATURES_ANY_POINTER =

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.

{
  none: 'none',
  coarse: 'coarse',
  fine: 'fine'
}.freeze
MEDIA_FEATURES_COLOR_GAMUT =

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.

{
  srgb: 'srgb',
  p3: 'p3',
  rec2020: 'rec2020'
}.freeze
MEDIA_FEATURES_DISPLAY_MODE =

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.

{
  fullscreen: 'fullscreen',
  standalone: 'standalone',
  minimal_ui: 'minimal-ui',
  browser: 'browser',
  picture_in_picture: 'picture-in-picture'
}.freeze
MEDIA_FEATURES_DYNAMIC_RANGE =

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.

{
  standard: 'standard',
  high: 'high'
}.freeze
MEDIA_FEATURES_ENVIRONMENT_BLENDING =

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.

{
  opaque: 'opaque',
  additive: 'additive',
  subtractive: 'subtractive'
}.freeze
MEDIA_FEATURES_FORCED_COLORS =

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.

{
  none: 'none',
  active: 'active'
}.freeze
MEDIA_FEATURES_GRID =

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.

{
  _0: 0,
  _1: 1
}.freeze
MEDIA_FEATURES_HOVER =

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.

{
  none: 'none',
  hover: 'hover'
}.freeze
MEDIA_FEATURES_INVERTED_COLORS =

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.

{
  none: 'none',
  inverted: 'inverted'
}.freeze
MEDIA_FEATURES_NAV_CONTROLS =

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.

{
  none: 'none',
  back: 'back'
}.freeze
MEDIA_FEATURES_OVERFLOW_BLOCK =

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.

{
  none: 'none',
  scroll: 'scroll',
  optional_paged: 'optional-paged',
  paged: 'paged'
}.freeze
MEDIA_FEATURES_OVERFLOW_INLINE =

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.

{
  none: 'none',
  scroll: 'scroll'
}.freeze
MEDIA_FEATURES_POINTER =

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.

{
  none: 'none',
  coarse: 'coarse',
  fine: 'fine'
}.freeze
MEDIA_FEATURES_PREFERS_COLOR_SCHEME =

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.

{
  light: 'light',
  dark: 'dark'
}.freeze
MEDIA_FEATURES_PREFERS_CONTRAST =

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.

{
  no_preference: 'no-preference',
  more: 'more',
  less: 'less',
  custom: 'custom'
}.freeze
MEDIA_FEATURES_PREFERS_REDUCED_DATA =

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.

{
  no_preference: 'no-preference',
  reduce: 'reduce'
}.freeze
MEDIA_FEATURES_PREFERS_REDUCED_MOTION =

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.

{
  no_preference: 'no-preference',
  reduce: 'reduce'
}.freeze
MEDIA_FEATURES_PREFERS_REDUCED_TRANSPARENCY =

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.

{
  no_preference: 'no-preference',
  reduce: 'reduce'
}.freeze
MEDIA_FEATURES_SCAN =

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.

{
  interlace: 'interlace',
  progressive: 'progressive'
}.freeze
MEDIA_FEATURES_SCRIPTING =

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.

{
  none: 'none',
  initial_only: 'initial-only',
  enabled: 'enabled'
}.freeze
MEDIA_FEATURES_UPDATE =

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.

{
  none: 'none',
  slow: 'slow',
  fast: 'fast'
}.freeze
MEDIA_FEATURES_VIDEO_COLOR_GAMUT =

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.

{
  srgb: 'srgb',
  p3: 'p3',
  rec2020: 'rec2020'
}.freeze
MEDIA_FEATURES_VIDEO_DYNAMIC_RANGE =

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.

{
  standard: 'standard',
  high: 'high'
}.freeze
SET_SCROLLBAR_TYPE_OVERRIDE_PARAMETERS_SCROLLBAR_TYPE =

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.

{
  classic: 'classic',
  overlay: 'overlay'
}.freeze
SetForcedColorsModeThemeOverrideParameters =

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(
  theme: {wire_key: 'theme', nullable: true, enum: 'Emulation::FORCED_COLORS_MODE_THEME'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
GeolocationCoordinates =

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(
  latitude: {wire_key: 'latitude', primitive: 'number'},
  longitude: {wire_key: 'longitude', primitive: 'number'},
  accuracy: {wire_key: 'accuracy', required: false, primitive: 'number'},
  altitude: {wire_key: 'altitude', required: false, nullable: true, primitive: 'number'},
  altitude_accuracy: {wire_key: 'altitudeAccuracy', required: false, nullable: true, primitive: 'number'},
  heading: {wire_key: 'heading', required: false, nullable: true, primitive: 'number'},
  speed: {wire_key: 'speed', required: false, nullable: true, primitive: 'number'}
)
GeolocationPositionError =

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(type: {fixed: 'positionUnavailable'})
SetLocaleOverrideParameters =

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(
  locale: {wire_key: 'locale', nullable: true, primitive: 'string'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetMediaFeaturesOverrideParameters =

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(
  features: {wire_key: 'features', nullable: true, ref: 'Emulation::MediaFeatures'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
MediaFeatures =

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(
  any_hover: {
    wire_key: 'any-hover',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_ANY_HOVER'
  },
  any_pointer: {
    wire_key: 'any-pointer',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_ANY_POINTER'
  },
  color: {wire_key: 'color', required: false, nullable: true, primitive: 'integer'},
  color_gamut: {
    wire_key: 'color-gamut',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_COLOR_GAMUT'
  },
  color_index: {wire_key: 'color-index', required: false, nullable: true, primitive: 'integer'},
  display_mode: {
    wire_key: 'display-mode',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_DISPLAY_MODE'
  },
  dynamic_range: {
    wire_key: 'dynamic-range',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_DYNAMIC_RANGE'
  },
  environment_blending: {
    wire_key: 'environment-blending',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_ENVIRONMENT_BLENDING'
  },
  forced_colors: {
    wire_key: 'forced-colors',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_FORCED_COLORS'
  },
  grid: {wire_key: 'grid', required: false, nullable: true, enum: 'Emulation::MEDIA_FEATURES_GRID'},
  horizontal_viewport_segments: {
    wire_key: 'horizontal-viewport-segments',
    required: false,
    nullable: true,
    primitive: 'integer'
  },
  hover: {wire_key: 'hover', required: false, nullable: true, enum: 'Emulation::MEDIA_FEATURES_HOVER'},
  inverted_colors: {
    wire_key: 'inverted-colors',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_INVERTED_COLORS'
  },
  monochrome: {wire_key: 'monochrome', required: false, nullable: true, primitive: 'integer'},
  nav_controls: {
    wire_key: 'nav-controls',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_NAV_CONTROLS'
  },
  overflow_block: {
    wire_key: 'overflow-block',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_OVERFLOW_BLOCK'
  },
  overflow_inline: {
    wire_key: 'overflow-inline',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_OVERFLOW_INLINE'
  },
  pointer: {wire_key: 'pointer', required: false, nullable: true, enum: 'Emulation::MEDIA_FEATURES_POINTER'},
  prefers_color_scheme: {
    wire_key: 'prefers-color-scheme',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_PREFERS_COLOR_SCHEME'
  },
  prefers_contrast: {
    wire_key: 'prefers-contrast',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_PREFERS_CONTRAST'
  },
  prefers_reduced_data: {
    wire_key: 'prefers-reduced-data',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_PREFERS_REDUCED_DATA'
  },
  prefers_reduced_motion: {
    wire_key: 'prefers-reduced-motion',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_PREFERS_REDUCED_MOTION'
  },
  prefers_reduced_transparency: {
    wire_key: 'prefers-reduced-transparency',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_PREFERS_REDUCED_TRANSPARENCY'
  },
  scan: {wire_key: 'scan', required: false, nullable: true, enum: 'Emulation::MEDIA_FEATURES_SCAN'},
  scripting: {
    wire_key: 'scripting',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_SCRIPTING'
  },
  update: {wire_key: 'update', required: false, nullable: true, enum: 'Emulation::MEDIA_FEATURES_UPDATE'},
  vertical_viewport_segments: {
    wire_key: 'vertical-viewport-segments',
    required: false,
    nullable: true,
    primitive: 'integer'
  },
  video_color_gamut: {
    wire_key: 'video-color-gamut',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_VIDEO_COLOR_GAMUT'
  },
  video_dynamic_range: {
    wire_key: 'video-dynamic-range',
    required: false,
    nullable: true,
    enum: 'Emulation::MEDIA_FEATURES_VIDEO_DYNAMIC_RANGE'
  }
)
SetNetworkConditionsParameters =

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(
  network_conditions: {
    wire_key: 'networkConditions',
    nullable: true,
    ref: 'Emulation::NetworkConditionsOffline'
  },
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
NetworkConditionsOffline =

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(type: {fixed: 'offline'})
ScreenArea =

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(
  width: {wire_key: 'width', primitive: 'integer'},
  height: {wire_key: 'height', primitive: 'integer'}
)
SetScreenSettingsOverrideParameters =

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(
  screen_area: {wire_key: 'screenArea', nullable: true, ref: 'Emulation::ScreenArea'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
ScreenOrientation =

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(
  natural: {wire_key: 'natural', enum: 'Emulation::SCREEN_ORIENTATION_NATURAL'},
  type: {wire_key: 'type', enum: 'Emulation::SCREEN_ORIENTATION_TYPE'}
)
SetScreenOrientationOverrideParameters =

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(
  screen_orientation: {wire_key: 'screenOrientation', nullable: true, ref: 'Emulation::ScreenOrientation'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetUserAgentOverrideParameters =

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(
  user_agent: {wire_key: 'userAgent', nullable: true, primitive: 'string'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetViewportMetaOverrideParameters =

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(
  viewport_meta: {wire_key: 'viewportMeta', nullable: true, const: true},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetScriptingEnabledParameters =

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(
  enabled: {wire_key: 'enabled', nullable: true, const: false},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetScrollbarTypeOverrideParameters =

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(
  scrollbar_type: {
    wire_key: 'scrollbarType',
    nullable: true,
    enum: 'Emulation::SET_SCROLLBAR_TYPE_OVERRIDE_PARAMETERS_SCROLLBAR_TYPE'
  },
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetTextLayoutModeOverrideParameters =

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(
  text_layout_mode: {wire_key: 'textLayoutMode', nullable: true, enum: 'Emulation::TEXT_LAYOUT_MODE'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetTimezoneOverrideParameters =

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(
  timezone: {wire_key: 'timezone', nullable: true, primitive: 'string'},
  contexts: {wire_key: 'contexts', required: false, list: true},
  user_contexts: {wire_key: 'userContexts', required: false, list: true}
)
SetTouchOverrideParameters =

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(
  max_touch_points: {wire_key: 'maxTouchPoints', nullable: true, primitive: 'integer'},
  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

#geolocation_coordinates ⇒ 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.



526
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 526

def geolocation_coordinates(**) = GeolocationCoordinates.new(**)

#geolocation_position_error ⇒ 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.



527
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 527

def geolocation_position_error(**) = GeolocationPositionError.new(**)

#media_features ⇒ 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.



528
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 528

def media_features(**) = MediaFeatures.new(**)

#network_conditions_offline ⇒ 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.



529
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 529

def network_conditions_offline(**) = NetworkConditionsOffline.new(**)

#screen_area ⇒ 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.



530
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 530

def screen_area(**) = ScreenArea.new(**)

#screen_orientation ⇒ 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.



531
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 531

def screen_orientation(**) = ScreenOrientation.new(**)

#set_forced_colors_mode_theme_override(theme:, 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.



536
537
538
539
540
541
542
543
544
545
546
547
548
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 536

def set_forced_colors_mode_theme_override(
  theme:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  Serialization.validate!('theme', theme, Emulation::FORCED_COLORS_MODE_THEME)
  params = SetForcedColorsModeThemeOverrideParameters.new(
    theme: theme,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setForcedColorsModeThemeOverride', params: params)
end

#set_geolocation_override(contexts: Serialization::UNSET, user_contexts: Serialization::UNSET, coordinates: Serialization::UNSET, error: 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.



553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 553

def set_geolocation_override(
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET,
  coordinates: Serialization::UNSET,
  error: Serialization::UNSET
)
  params = SetGeolocationOverrideParameters.build(
    contexts: contexts,
    user_contexts: user_contexts,
    coordinates: coordinates,
    error: error
  )
  execute(cmd: 'emulation.setGeolocationOverride', params: params)
end

#set_locale_override(locale:, 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.



571
572
573
574
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 571

def set_locale_override(locale:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)
  params = SetLocaleOverrideParameters.new(locale: locale, contexts: contexts, user_contexts: user_contexts)
  execute(cmd: 'emulation.setLocaleOverride', params: params)
end

#set_media_features_override(features:, 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.



579
580
581
582
583
584
585
586
587
588
589
590
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 579

def set_media_features_override(
  features:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetMediaFeaturesOverrideParameters.new(
    features: features,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setMediaFeaturesOverride', params: params)
end

#set_network_conditions(network_conditions:, 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.



595
596
597
598
599
600
601
602
603
604
605
606
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 595

def set_network_conditions(
  network_conditions:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetNetworkConditionsParameters.new(
    network_conditions: network_conditions,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setNetworkConditions', params: params)
end

#set_screen_orientation_override(screen_orientation:, 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.



611
612
613
614
615
616
617
618
619
620
621
622
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 611

def set_screen_orientation_override(
  screen_orientation:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetScreenOrientationOverrideParameters.new(
    screen_orientation: screen_orientation,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setScreenOrientationOverride', params: params)
end

#set_screen_settings_override(screen_area:, 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.



627
628
629
630
631
632
633
634
635
636
637
638
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 627

def set_screen_settings_override(
  screen_area:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetScreenSettingsOverrideParameters.new(
    screen_area: screen_area,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setScreenSettingsOverride', params: params)
end

#set_scripting_enabled(enabled:, 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.



643
644
645
646
647
648
649
650
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 643

def set_scripting_enabled(enabled:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)
  params = SetScriptingEnabledParameters.new(
    enabled: enabled,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setScriptingEnabled', params: params)
end

#set_scrollbar_type_override(scrollbar_type:, 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.



655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 655

def set_scrollbar_type_override(
  scrollbar_type:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  Serialization.validate!(
    'scrollbarType',
    scrollbar_type,
    Emulation::SET_SCROLLBAR_TYPE_OVERRIDE_PARAMETERS_SCROLLBAR_TYPE
  )
  params = SetScrollbarTypeOverrideParameters.new(
    scrollbar_type: scrollbar_type,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setScrollbarTypeOverride', params: params)
end

#set_text_layout_mode_override(text_layout_mode:, 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.



676
677
678
679
680
681
682
683
684
685
686
687
688
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 676

def set_text_layout_mode_override(
  text_layout_mode:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  Serialization.validate!('textLayoutMode', text_layout_mode, Emulation::TEXT_LAYOUT_MODE)
  params = SetTextLayoutModeOverrideParameters.new(
    text_layout_mode: text_layout_mode,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setTextLayoutModeOverride', params: params)
end

#set_timezone_override(timezone:, 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.



693
694
695
696
697
698
699
700
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 693

def set_timezone_override(timezone:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)
  params = SetTimezoneOverrideParameters.new(
    timezone: timezone,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setTimezoneOverride', params: params)
end

#set_touch_override(max_touch_points:, 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.



705
706
707
708
709
710
711
712
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 705

def set_touch_override(max_touch_points:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)
  params = SetTouchOverrideParameters.new(
    max_touch_points: max_touch_points,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setTouchOverride', params: params)
end

#set_user_agent_override(user_agent:, 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.



717
718
719
720
721
722
723
724
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 717

def set_user_agent_override(user_agent:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET)
  params = SetUserAgentOverrideParameters.new(
    user_agent: user_agent,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setUserAgentOverride', params: params)
end

#set_viewport_meta_override(viewport_meta:, 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.



729
730
731
732
733
734
735
736
737
738
739
740
# File 'rb/lib/selenium/webdriver/bidi/protocol/emulation.rb', line 729

def set_viewport_meta_override(
  viewport_meta:,
  contexts: Serialization::UNSET,
  user_contexts: Serialization::UNSET
)
  params = SetViewportMetaOverrideParameters.new(
    viewport_meta: viewport_meta,
    contexts: contexts,
    user_contexts: user_contexts
  )
  execute(cmd: 'emulation.setViewportMetaOverride', params: params)
end