-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Is there a way to access the payload for a PUT request method? #5735
Comments
What about |
Thank you for your answer Pavel. I tried using Also, thank you for the solution. I will try this when it gets merged. |
Looks like not yet addressed. PUT should not matter, adding a test for it. |
Could you share more about your use case? I added a test for PUT specifically and it passed. I wonder if there is something special about your setup. Could you print request headers? |
Thanks for adding a PUT test. I want to validate that the Azure Storage SDKs are being called correctly from our app using PUT requests. In order to do it, I'm trying to intercept and test this call: https://docs.microsoft.com/en-us/rest/api/storageservices/put-range |
Could you share part of the code that sends the request? |
@resaldiv Feel free to reopen this issue if the problem is still there, providing some sample code for us to figure out how to go about reproducing it. |
Facing issue decsribed above. |
Is there some progress in fixing that problem? @BarrBozzO |
I'm facing the same issue |
In my case I am using PUT multipart/form-data for file updates, which is deprecated, so I found it impossible to get form-data with playwright's API. |
Hi!
I'm writing a playwright test that intercepts a PUT request and I want to verify that the request payload contains the expected data. I've tried to access the payload like this:
Even though it enters the if condition and I see the payload in the browser, the postDataJSON() returns null.
I believe that postData() and postDataJSON() only works for POST methods. If that's true, is there a way I can access the request payload for a PUT request method and what would be the right approach to do it?
Thank you.
The text was updated successfully, but these errors were encountered: