MCPcopy
hub / github.com/mxschmitt/playwright-go / initialize

Method initialize

channel_owner.go:107–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (r *rootChannelOwner) initialize() (*Playwright, error) {
108 ret, err := r.channel.SendReturnAsDict("initialize", map[string]any{
109 "sdkLanguage": "javascript",
110 })
111 if err != nil {
112 return nil, err
113 }
114 // GUIDs are now always eagerly resolved in connection.Dispatch
115 playwrightValue := ret["playwright"]
116 return fromChannel(playwrightValue).(*Playwright), nil
117}
118
119func newRootChannelOwner(connection *connection) *rootChannelOwner {
120 c := &rootChannelOwner{}

Callers 1

StartMethod · 0.80

Calls 2

fromChannelFunction · 0.85
SendReturnAsDictMethod · 0.80

Tested by

no test coverage detected