Last active
November 24, 2020 17:46
-
-
Save ysmood/2540c531e140e701e42cf2554924e0b1 to your computer and use it in GitHub Desktop.
Issue 1151822: CDP call Page.close on the non-exist session id will hang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"github.com/go-rod/rod" | |
"github.com/go-rod/rod/lib/cdp" | |
"github.com/go-rod/rod/lib/launcher" | |
) | |
func main() { | |
ctx := context.Background() | |
u := launcher.New().MustLaunch() | |
cdp := cdp.New(u).Logger(rod.DefaultLogger).MustConnect(ctx) | |
_, _ = cdp.Call(ctx, "nonexist", "Page.close", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actual output:
Expected output: