summaryrefslogtreecommitdiff
path: root/vendor/github.com/playwright-community/playwright-go/objectFactory.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-14 13:18:54 -0600
committermo khan <mo@mokhan.ca>2025-05-14 13:18:54 -0600
commit4b2d609a0efcc1d9b2f1a08f954d067ad1d9cd1e (patch)
tree0afacf9217b0569130da6b97d4197331681bf119 /vendor/github.com/playwright-community/playwright-go/objectFactory.go
parentab373d1fe698cd3f53258c09bc8515d88a6d0b9e (diff)
test: use playwright to test out an OIDC login
Diffstat (limited to 'vendor/github.com/playwright-community/playwright-go/objectFactory.go')
-rw-r--r--vendor/github.com/playwright-community/playwright-go/objectFactory.go74
1 files changed, 74 insertions, 0 deletions
diff --git a/vendor/github.com/playwright-community/playwright-go/objectFactory.go b/vendor/github.com/playwright-community/playwright-go/objectFactory.go
new file mode 100644
index 0000000..9474c54
--- /dev/null
+++ b/vendor/github.com/playwright-community/playwright-go/objectFactory.go
@@ -0,0 +1,74 @@
+package playwright
+
+func createObjectFactory(parent *channelOwner, objectType string, guid string, initializer map[string]interface{}) interface{} {
+ switch objectType {
+ case "Android":
+ return nil
+ case "AndroidSocket":
+ return nil
+ case "AndroidDevice":
+ return nil
+ case "APIRequestContext":
+ return newAPIRequestContext(parent, objectType, guid, initializer)
+ case "Artifact":
+ return newArtifact(parent, objectType, guid, initializer)
+ case "BindingCall":
+ return newBindingCall(parent, objectType, guid, initializer)
+ case "Browser":
+ return newBrowser(parent, objectType, guid, initializer)
+ case "BrowserType":
+ return newBrowserType(parent, objectType, guid, initializer)
+ case "BrowserContext":
+ return newBrowserContext(parent, objectType, guid, initializer)
+ case "CDPSession":
+ return newCDPSession(parent, objectType, guid, initializer)
+ case "Dialog":
+ return newDialog(parent, objectType, guid, initializer)
+ case "Electron":
+ return nil
+ case "ElectronApplication":
+ return nil
+ case "ElementHandle":
+ return newElementHandle(parent, objectType, guid, initializer)
+ case "Frame":
+ return newFrame(parent, objectType, guid, initializer)
+ case "JSHandle":
+ return newJSHandle(parent, objectType, guid, initializer)
+ case "JsonPipe":
+ return newJsonPipe(parent, objectType, guid, initializer)
+ case "LocalUtils":
+ localUtils := newLocalUtils(parent, objectType, guid, initializer)
+ if localUtils.connection.localUtils == nil {
+ localUtils.connection.localUtils = localUtils
+ }
+ return localUtils
+ case "Page":
+ return newPage(parent, objectType, guid, initializer)
+ case "Playwright":
+ return newPlaywright(parent, objectType, guid, initializer)
+ case "Request":
+ return newRequest(parent, objectType, guid, initializer)
+ case "Response":
+ return newResponse(parent, objectType, guid, initializer)
+ case "Route":
+ return newRoute(parent, objectType, guid, initializer)
+ case "Selectors":
+ return newSelectorsOwner(parent, objectType, guid, initializer)
+ case "SocksSupport":
+ return nil
+ case "Stream":
+ return newStream(parent, objectType, guid, initializer)
+ case "Tracing":
+ return newTracing(parent, objectType, guid, initializer)
+ case "WebSocket":
+ return newWebsocket(parent, objectType, guid, initializer)
+ case "WebSocketRoute":
+ return newWebSocketRoute(parent, objectType, guid, initializer)
+ case "Worker":
+ return newWorker(parent, objectType, guid, initializer)
+ case "WritableStream":
+ return newWritableStream(parent, objectType, guid, initializer)
+ default:
+ panic(objectType)
+ }
+}