Class: Selenium::WebDriver::BiDi::Protocol::MozDebugging Private
- Defined in:
- lib/selenium/webdriver/bidi/protocol/moz_debugging.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: PausedParametersScopeValue
Constant Summary collapse
- EVENTS =
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.
{ paused: 'moz:debugging.paused', resumed: 'moz:debugging.resumed' }.freeze
- GetScriptSourceParameters =
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( context: {wire_key: 'context', primitive: 'string'}, script_url: {wire_key: 'scriptUrl', primitive: 'string'} )
- GetScriptSourceResult =
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(source: {wire_key: 'source', primitive: 'string'})
- ListScriptsParameters =
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(context: {wire_key: 'context', primitive: 'string'})
- ListScriptsResult =
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(scripts: {wire_key: 'scripts', list: true})
- RemoveBreakpointParameters =
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( breakpoint: {wire_key: 'breakpoint', primitive: 'string'} )
- ResumeParameters =
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(context: {wire_key: 'context', primitive: 'string'})
- SetBreakpointParameters =
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( location: {wire_key: 'location', ref: 'MozDebugging::SetBreakpointParameters::Location'} )
- SetBreakpointResult =
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(breakpoint: {wire_key: 'breakpoint', primitive: 'string'})
- BaseLocation =
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( line: {wire_key: 'line', primitive: 'integer'}, url: {wire_key: 'url', primitive: 'string'} )
- SetDebuggerEnabledParameters =
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( contexts: {wire_key: 'contexts', required: false, list: true}, enabled: {wire_key: 'enabled', nullable: true, primitive: 'boolean'}, user_contexts: {wire_key: 'userContexts', required: false, list: true} )
- StepIntoParameters =
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(context: {wire_key: 'context', primitive: 'string'})
- StepOutParameters =
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(context: {wire_key: 'context', primitive: 'string'})
- StepOverParameters =
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(context: {wire_key: 'context', primitive: 'string'})
- PausedParameters =
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( context: {wire_key: 'context', primitive: 'string'}, url: {wire_key: 'url', primitive: 'string'}, line: {wire_key: 'line', primitive: 'integer'}, column: {wire_key: 'column', primitive: 'integer'}, call_frames: {wire_key: 'callFrames', ref: 'MozDebugging::PausedParametersCallFrame', list: true} )
- PausedParametersCallFrame =
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( call_frame_id: {wire_key: 'callFrameId', primitive: 'string'}, function_name: {wire_key: 'functionName', primitive: 'string'}, location: {wire_key: 'location', ref: 'MozDebugging::PausedParametersCallFrame::Location'}, scope_chain: {wire_key: 'scopeChain', ref: 'MozDebugging::PausedParametersScope', list: true} )
- PausedParametersScope =
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: {wire_key: 'type', primitive: 'string'}, variables: 'variables' )
- PausedParametersScopeValueMissingArguments =
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: 'missingArguments'})
- PausedParametersScopeValueOptimizedOut =
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: 'optimizedOut'})
- PausedParametersScopeValueUninitialized =
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: 'uninitialized'})
- ResumedParameters =
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(context: {wire_key: 'context', primitive: 'string'})
- EVENT_TYPES =
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.
{ 'moz:debugging.paused' => MozDebugging::PausedParameters, 'moz:debugging.resumed' => MozDebugging::ResumedParameters }.freeze
Instance Method Summary collapse
- #get_script_source(context:, script_url:) ⇒ Object private
- #list_scripts(context:) ⇒ Object private
- #remove_breakpoint(breakpoint:) ⇒ Object private
- #resume(context:) ⇒ Object private
- #set_breakpoint(location:) ⇒ Object private
- #set_breakpoint_parameters_location ⇒ Object private
- #set_debugger_enabled(enabled:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) ⇒ Object private
- #step_into(context:) ⇒ Object private
- #step_out(context:) ⇒ Object private
- #step_over(context:) ⇒ Object private
Methods inherited from Domain
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#get_script_source(context:, script_url:) ⇒ 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.
266 267 268 269 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 266 def get_script_source(context:, script_url:) params = GetScriptSourceParameters.new(context: context, script_url: script_url) execute(cmd: 'moz:debugging.getScriptSource', params: params, result: MozDebugging::GetScriptSourceResult) end |
#list_scripts(context:) ⇒ 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.
273 274 275 276 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 273 def list_scripts(context:) params = ListScriptsParameters.new(context: context) execute(cmd: 'moz:debugging.listScripts', params: params, result: MozDebugging::ListScriptsResult) end |
#remove_breakpoint(breakpoint:) ⇒ 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.
280 281 282 283 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 280 def remove_breakpoint(breakpoint:) params = RemoveBreakpointParameters.new(breakpoint: breakpoint) execute(cmd: 'moz:debugging.removeBreakpoint', params: params) end |
#resume(context:) ⇒ 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.
287 288 289 290 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 287 def resume(context:) params = ResumeParameters.new(context: context) execute(cmd: 'moz:debugging.resume', params: params) end |
#set_breakpoint(location:) ⇒ 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.
294 295 296 297 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 294 def set_breakpoint(location:) params = SetBreakpointParameters.new(location: location) execute(cmd: 'moz:debugging.setBreakpoint', params: params, result: MozDebugging::SetBreakpointResult) end |
#set_breakpoint_parameters_location ⇒ 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.
262 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 262 def set_breakpoint_parameters_location(**) = SetBreakpointParameters::Location.new(**) |
#set_debugger_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.
301 302 303 304 305 306 307 308 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 301 def set_debugger_enabled(enabled:, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET) params = SetDebuggerEnabledParameters.new( contexts: contexts, enabled: enabled, user_contexts: user_contexts ) execute(cmd: 'moz:debugging.setDebuggerEnabled', params: params) end |
#step_into(context:) ⇒ 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.
312 313 314 315 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 312 def step_into(context:) params = StepIntoParameters.new(context: context) execute(cmd: 'moz:debugging.stepInto', params: params) end |
#step_out(context:) ⇒ 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.
319 320 321 322 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 319 def step_out(context:) params = StepOutParameters.new(context: context) execute(cmd: 'moz:debugging.stepOut', params: params) end |
#step_over(context:) ⇒ 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.
326 327 328 329 |
# File 'lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 326 def step_over(context:) params = StepOverParameters.new(context: context) execute(cmd: 'moz:debugging.stepOver', params: params) end |