()
| 105 | } |
| 106 | |
| 107 | func (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 | |
| 119 | func newRootChannelOwner(connection *connection) *rootChannelOwner { |
| 120 | c := &rootChannelOwner{} |
no test coverage detected