(parent *channelOwner, objectType string, guid string, initializer map[string]any)
| 12 | } |
| 13 | |
| 14 | func createObjectFactory(parent *channelOwner, objectType string, guid string, initializer map[string]any) any { |
| 15 | switch objectType { |
| 16 | case "Android": |
| 17 | return newDummyObject(parent, objectType, guid, initializer) |
| 18 | case "AndroidSocket": |
| 19 | return newDummyObject(parent, objectType, guid, initializer) |
| 20 | case "AndroidDevice": |
| 21 | return newDummyObject(parent, objectType, guid, initializer) |
| 22 | case "APIRequestContext": |
| 23 | return newAPIRequestContext(parent, objectType, guid, initializer) |
| 24 | case "Artifact": |
| 25 | return newArtifact(parent, objectType, guid, initializer) |
| 26 | case "BindingCall": |
| 27 | return newBindingCall(parent, objectType, guid, initializer) |
| 28 | case "Browser": |
| 29 | return newBrowser(parent, objectType, guid, initializer) |
| 30 | case "BrowserType": |
| 31 | return newBrowserType(parent, objectType, guid, initializer) |
| 32 | case "BrowserContext": |
| 33 | return newBrowserContext(parent, objectType, guid, initializer) |
| 34 | case "Debugger": |
| 35 | return newDebugger(parent, objectType, guid, initializer) |
| 36 | case "CDPSession": |
| 37 | return newCDPSession(parent, objectType, guid, initializer) |
| 38 | case "Dialog": |
| 39 | return newDialog(parent, objectType, guid, initializer) |
| 40 | case "Electron": |
| 41 | return newDummyObject(parent, objectType, guid, initializer) |
| 42 | case "ElectronApplication": |
| 43 | return newDummyObject(parent, objectType, guid, initializer) |
| 44 | case "ElementHandle": |
| 45 | return newElementHandle(parent, objectType, guid, initializer) |
| 46 | case "Frame": |
| 47 | return newFrame(parent, objectType, guid, initializer) |
| 48 | case "JSHandle": |
| 49 | return newJSHandle(parent, objectType, guid, initializer) |
| 50 | case "JsonPipe": |
| 51 | return newJsonPipe(parent, objectType, guid, initializer) |
| 52 | case "LocalUtils": |
| 53 | localUtils := newLocalUtils(parent, objectType, guid, initializer) |
| 54 | if localUtils.connection.localUtils == nil { |
| 55 | localUtils.connection.localUtils = localUtils |
| 56 | } |
| 57 | return localUtils |
| 58 | case "Page": |
| 59 | return newPage(parent, objectType, guid, initializer) |
| 60 | case "Playwright": |
| 61 | return newPlaywright(parent, objectType, guid, initializer) |
| 62 | case "Request": |
| 63 | return newRequest(parent, objectType, guid, initializer) |
| 64 | case "Response": |
| 65 | return newResponse(parent, objectType, guid, initializer) |
| 66 | case "Route": |
| 67 | return newRoute(parent, objectType, guid, initializer) |
| 68 | case "Selectors": |
| 69 | return newSelectorsOwner(parent, objectType, guid, initializer) |
| 70 | case "SocksSupport": |
| 71 | return nil |
no test coverage detected