Class: Stagehand::Models::SessionNavigateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/stagehand/models/session_navigate_params.rb

Overview

Defined Under Namespace

Modules: XStreamResponse Classes: Options

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Stagehand::Internal::Type::BaseModel

Instance Attribute Details

#frame_idString?

Target frame ID for the navigation

Returns:

  • (String, nil)


26
# File 'lib/stagehand/models/session_navigate_params.rb', line 26

optional :frame_id, String, api_name: :frameId, nil?: true

#idString

Unique session identifier

Returns:

  • (String)


14
# File 'lib/stagehand/models/session_navigate_params.rb', line 14

required :id, String

#optionsStagehand::Models::SessionNavigateParams::Options?



31
# File 'lib/stagehand/models/session_navigate_params.rb', line 31

optional :options, -> { Stagehand::SessionNavigateParams::Options }

#stream_responseBoolean?

Whether to stream the response via SSE

Returns:

  • (Boolean, nil)


37
# File 'lib/stagehand/models/session_navigate_params.rb', line 37

optional :stream_response, Stagehand::Internal::Type::Boolean, api_name: :streamResponse

#urlString

URL to navigate to

Returns:

  • (String)


20
# File 'lib/stagehand/models/session_navigate_params.rb', line 20

required :url, String

#x_stream_responseSymbol, ...

Whether to stream the response via SSE



43
# File 'lib/stagehand/models/session_navigate_params.rb', line 43

optional :x_stream_response, enum: -> { Stagehand::SessionNavigateParams::XStreamResponse }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/stagehand/models/session_navigate_params.rb', line 98