playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
2.25k stars 163 forks source link

[Bug]: can not evaluate js on chrome debug #507

Open Nyx2022 opened 1 week ago

Nyx2022 commented 1 week ago

Environments

Bug description

can not evaluate js on chrome debug

To Reproduce Please provide a mini reproduction rather than just a description. For example:

package main

import "github.com/playwright-community/playwright-go"

func main() {

       // use ConnectOverCDP and pages to get some page and debug in that page in chrome ,then run the following codes
       evaluateResult, err := page.Evaluate(method, params)
    if err != nil {
        return nil, err
    }
}

the code will block till timeout or cancel debug in chrome with error

Additional context Add any other context about the problem here.

in chrome console , it can run js codes even if in debug