Class: Selenium::WebDriver::BiDi::Protocol::Emulation Private
- Defined in:
- 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
- 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} )
- 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
- #geolocation_coordinates ⇒ Object private
- #geolocation_position_error ⇒ Object private
- #media_features ⇒ Object private
- #network_conditions_offline ⇒ Object private
- #screen_area ⇒ Object private
- #screen_orientation ⇒ Object private
- #set_forced_colors_mode_theme_override(theme:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_geolocation_override(contexts: Serialization::UNSET, user_contexts: Serialization::UNSET, coordinates: Serialization::UNSET, error: Serialization::UNSET) ⇒ Object private
- #set_locale_override(locale:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_media_features_override(features:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_network_conditions(network_conditions:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_screen_orientation_override(screen_orientation:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_screen_settings_override(screen_area:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_scripting_enabled(enabled:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_scrollbar_type_override(scrollbar_type:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_timezone_override(timezone:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_touch_override(max_touch_points:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_user_agent_override(user_agent:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #set_viewport_meta_override(viewport_meta:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
Methods inherited from Domain
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.
512 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 512 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.
513 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 513 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.
514 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 514 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.
515 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 515 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.
516 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 516 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.
517 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 517 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.
522 523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 522 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.
539 540 541 542 543 544 545 546 547 548 549 550 551 552 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 539 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.
557 558 559 560 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 557 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.
565 566 567 568 569 570 571 572 573 574 575 576 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 565 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.
581 582 583 584 585 586 587 588 589 590 591 592 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 581 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.
597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 597 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.
613 614 615 616 617 618 619 620 621 622 623 624 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 613 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.
629 630 631 632 633 634 635 636 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 629 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.
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 641 def ( scrollbar_type:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET ) Serialization.validate!( 'scrollbarType', , Emulation::SET_SCROLLBAR_TYPE_OVERRIDE_PARAMETERS_SCROLLBAR_TYPE ) params = SetScrollbarTypeOverrideParameters.new( scrollbar_type: , contexts: contexts, user_contexts: user_contexts ) execute(cmd: 'emulation.setScrollbarTypeOverride', 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.
662 663 664 665 666 667 668 669 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 662 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.
674 675 676 677 678 679 680 681 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 674 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.
686 687 688 689 690 691 692 693 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 686 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.
698 699 700 701 702 703 704 705 706 707 708 709 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 698 def ( viewport_meta:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET ) params = SetViewportMetaOverrideParameters.new( viewport_meta: , contexts: contexts, user_contexts: user_contexts ) execute(cmd: 'emulation.setViewportMetaOverride', params: params) end |