Skip to content

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

Open
@Nyx2022

Description

@Nyx2022

Environments

  • playwright-go Version: v0.4702.0
  • Browser: chrome
  • OS and version: Windows 11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions