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
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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', min: -90, max: 90}, longitude: {wire_key: 'longitude', primitive: 'number', min: -180, max: 180}, accuracy: {wire_key: 'accuracy', required: false, primitive: 'number', min: 0}, altitude: {wire_key: 'altitude', required: false, nullable: true, primitive: 'number'}, altitude_accuracy: { wire_key: 'altitudeAccuracy', required: false, nullable: true, primitive: 'number', min: 0 }, heading: { wire_key: 'heading', required: false, nullable: true, primitive: 'number', min: 0, max: 360, exclusive_max: true }, speed: {wire_key: 'speed', required: false, nullable: true, primitive: 'number', min: 0} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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', min: 0, max: 9_007_199_254_740_991 }, 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', min: 0, max: 9_007_199_254_740_991 }, 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', min: 0, max: 9_007_199_254_740_991 }, 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', min: 0, max: 9_007_199_254_740_991 }, 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', min: 0, max: 9_007_199_254_740_991 }, 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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', min: 0, max: 9_007_199_254_740_991}, height: {wire_key: 'height', primitive: 'integer', min: 0, max: 9_007_199_254_740_991} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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', min: 1, max: 9_007_199_254_740_991 }, contexts: {wire_key: 'contexts', required: false, list: true, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
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_text_layout_mode_override(text_layout_mode:, 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.
571 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 571 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.
572 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 572 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.
573 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 573 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.
574 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 574 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.
575 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 575 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.
576 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 576 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.
581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 581 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.
598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 598 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.
616 617 618 619 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 616 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.
624 625 626 627 628 629 630 631 632 633 634 635 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 624 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.
640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 640 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.
656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 656 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.
672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 672 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.
688 689 690 691 692 693 694 695 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 688 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.
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 700 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_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.
721 722 723 724 725 726 727 728 729 730 731 732 733 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 721 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.
738 739 740 741 742 743 744 745 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 738 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.
750 751 752 753 754 755 756 757 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 750 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.
762 763 764 765 766 767 768 769 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 762 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.
774 775 776 777 778 779 780 781 782 783 784 785 |
# File 'lib/selenium/webdriver/bidi/protocol/emulation.rb', line 774 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 |