microsoft / playwright-java

Java version of the Playwright testing and automation library
https://playwright.dev/java/
Apache License 2.0
1.07k stars 195 forks source link

[Feature] how to get request curl format with APIRequestContext #1614

Closed Hansanto closed 18 hours ago

Hansanto commented 1 week ago

🚀 Feature Request

Like #1399, I would like to know how to obtain all information about a request sent from request object.

In this context, I'm interacting only with API and not Website, so I don't use the page object

Example

No response

Motivation

Get the possibility to log requests & responses easily for API calls

mxschmitt commented 5 days ago

Looks similar to https://github.com/microsoft/playwright/issues/30082 - since Trace Viewer is the UI we recommend for debugging, thats probably a good place to add it.

mxschmitt commented 18 hours ago

Folding into https://github.com/microsoft/playwright/issues/30082