Class: Selenium::WebDriver::BiDi::Protocol::MozDebugging Private
- Defined in:
- rb/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, primitive: 'string'} )
- 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', min: 0, max: 9_007_199_254_740_991}, 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, primitive: 'string'}, enabled: {wire_key: 'enabled', nullable: true, primitive: 'boolean'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'} )
- 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', min: 0, max: 9_007_199_254_740_991}, column: {wire_key: 'column', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, 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
- #add_paused_listener(&block) ⇒ Object private
- #add_resumed_listener(&block) ⇒ Object private
- #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
#add_paused_listener(&block) ⇒ 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.
335 336 337 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 335 def add_paused_listener(&block) add_listener('moz:debugging.paused', &block) end |
#add_resumed_listener(&block) ⇒ 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.
341 342 343 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 341 def add_resumed_listener(&block) add_listener('moz:debugging.resumed', &block) end |
#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.
268 269 270 271 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 268 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.
275 276 277 278 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 275 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.
282 283 284 285 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 282 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.
289 290 291 292 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 289 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.
296 297 298 299 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 296 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.
264 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 264 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.
303 304 305 306 307 308 309 310 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 303 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.
314 315 316 317 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 314 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.
321 322 323 324 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 321 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.
328 329 330 331 |
# File 'rb/lib/selenium/webdriver/bidi/protocol/moz_debugging.rb', line 328 def step_over(context:) params = StepOverParameters.new(context: context) execute(cmd: 'moz:debugging.stepOver', params: params) end |