summaryrefslogtreecommitdiff
path: root/vendor/github.com/playwright-community/playwright-go/cdp_session.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-12 16:33:27 -0600
committermo khan <mo@mokhan.ca>2025-05-12 16:33:27 -0600
commit29b59441a4bbada64d8d07bd2609f15dfde670e5 (patch)
tree3b3583edb261279cfcdfd9eed904d118c4bf67b1 /vendor/github.com/playwright-community/playwright-go/cdp_session.go
parent78ccd9a4312eab7e11da4413733a12953f88a4fe (diff)
test: remove UI tests
Diffstat (limited to 'vendor/github.com/playwright-community/playwright-go/cdp_session.go')
-rw-r--r--vendor/github.com/playwright-community/playwright-go/cdp_session.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/vendor/github.com/playwright-community/playwright-go/cdp_session.go b/vendor/github.com/playwright-community/playwright-go/cdp_session.go
deleted file mode 100644
index e9bba82..0000000
--- a/vendor/github.com/playwright-community/playwright-go/cdp_session.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package playwright
-
-type cdpSessionImpl struct {
- channelOwner
-}
-
-func (c *cdpSessionImpl) Detach() error {
- _, err := c.channel.Send("detach")
- return err
-}
-
-func (c *cdpSessionImpl) Send(method string, params map[string]interface{}) (interface{}, error) {
- result, err := c.channel.Send("send", map[string]interface{}{
- "method": method,
- "params": params,
- })
- if err != nil {
- return nil, err
- }
-
- return result, err
-}
-
-func (c *cdpSessionImpl) onEvent(params map[string]interface{}) {
- c.Emit(params["method"].(string), params["params"])
-}
-
-func newCDPSession(parent *channelOwner, objectType string, guid string, initializer map[string]interface{}) *cdpSessionImpl {
- bt := &cdpSessionImpl{}
-
- bt.createChannelOwner(bt, parent, objectType, guid, initializer)
-
- bt.channel.On("event", func(params map[string]interface{}) {
- bt.onEvent(params)
- })
-
- return bt
-}