-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[BUG] Edge does not report request payload #4037
Comments
Thanks @ethanwc. I'm able to repro with the following script. It seems that none of the requests to This is on Edge version 87.0.654.0 (Official build) Dev (64-bit). This url doesn't work in plain Chromium and I wonder if the browser is behaving differently for this particular url. const { chromium } = require('playwright');
const { getEdgePath } = require("edge-paths");
(async () => {
const browser = await chromium.launch({
headless: false, devtools: true, executablePath: getEdgePath()
});
const page = await browser.newPage();
page.on('request', request => {
if (request.url().includes('browser.events'))
console.log(request.postData())
});
await page.goto("https://ntp.msn.com/edge/ntp?locale=en&dsp=1&sp=Bing&query=enterprise");
await page.waitForTimeout(50000);
await browser.close();
})(); |
The snippet from @arjunattam works for me with Edge 87.0.664.41 on MacOS 10.15. Did the issue fix itself on your end? |
Closing as per above, please file it and link to this issue if it repros on 1.6! |
Hi,
I am trying to verify expected data is being sent to an api. I am able to access the response data, but not the request data. How do you grab the request payload data inside playwright? I am calling request.postDataJson() which is returning null.
I created an example to demo my issue, and I ran into the same thing for post request on google.com.
The text was updated successfully, but these errors were encountered: