microsoft/playwright-java

[Feature] how to print/log request curl in playwright api automation

Closed this issue · 1 comments

I would like to save the request and responses in a file. Also want to log request curl(along with headers) in console log.

Can you please provide an example for logging the request curl in console?

yury-s commented

See our docs.

page.onRequest(request -> {
  System.out.println(request.url());
});