Skip to content
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] page.waitForResponse is not working for Firefox #2622

Closed
nbyavuz opened this issue Jun 18, 2020 · 5 comments
Closed

[BUG] page.waitForResponse is not working for Firefox #2622

nbyavuz opened this issue Jun 18, 2020 · 5 comments
Assignees

Comments

@nbyavuz
Copy link

nbyavuz commented Jun 18, 2020

Context:

  • Playwright Version: 1.1.1
  • Operating System: Linux / Manjaro
  • Node version: 10.21.0
  • Browser: Firefox

Code Snippet

    const [response] = await Promise.all([
        page.waitForResponse(/[\\/]api/, {timeout: TIMEOUT100}),
        page.click(START_QUIZ_ID)
            .catch(e => console.log("Error: Can't click start quiz button"))
    ]);

Describe the bug

Hi, page.WaitForResponse is working for Webkit and Chromium but not for Firefox. I can't share actual code but the same code is working for Webkit And Chromium.

@nbyavuz nbyavuz changed the title [BUG] [BUG] page.waitForResponse is not working for Firefox Jun 18, 2020
@dgozman
Copy link
Contributor

dgozman commented Jun 19, 2020

Unfortunately, I cannot easily repro this one. Perhaps, this depends on some property of the request. Could you help us debug please? Add the following to your script and share the logs relevant to the /[\\/]api/ request if you can.

page.on('request', console.log);
page.on('response', console.log);

Alternatively, run with DEBUG=pw:protocol environment variable and share the output.

Note that both logs contain data from the page/requests/responses, so make sure that you are comfortable sharing it.

@shirshak55
Copy link

@nbyavuz at least clear the cookie and origin :P other people may use it :( idk how sensitive it is .

@nbyavuz
Copy link
Author

nbyavuz commented Jun 24, 2020

@shirshak55 yep, you are right. Tomorrow I will share a new one. Thanks!

@dgozman
Copy link
Contributor

dgozman commented Jun 29, 2020

@nbyavuz It would be ideal to see the logs from the run with DEBUG=pw:protocol environment variable. If you feel comfortable sharing it with [email protected] (either email or any sharing service), that would be wonderful.

@dgozman dgozman added v1.3 and removed v1.2 labels Jul 2, 2020
@dgozman
Copy link
Contributor

dgozman commented Jul 20, 2020

@nbyavuz If you'd like to follow up with more details logs, please share them privately.

@dgozman dgozman closed this as completed Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants