-
Notifications
You must be signed in to change notification settings - Fork 12
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
Need help to get payload from POST request #39
Comments
@thanggggg1 Could you please explain the specific use case you're aiming to achieve so that we can provide more precise guidance? |
@sudharsan-selvaraj i used addMock to block the request like this const blockRequest = async (urlPattern) => { but i want to get the original requestBody before block, can you show me how. Thank you so much |
@thanggggg1 You can try below methods to get the API details await driver.execute("interceptor: startListening");
await blockRequest();
// perform some action
// ...
const apiRequests = await driver.execute("interceptor: stopListening");
console.log(apiRequests) // This will have all the API calls made from the app with the actual response |
Thank you @sudharsan-selvaraj , i will try |
@sudharsan-selvaraj , i can not excecute when set up proxy
Do you know how to fix this |
I dont know how to get payload from POST request before update it
The text was updated successfully, but these errors were encountered: