[Bug] 1.12.0 does not capture Page onRequest or onResponse
See original GitHub issueIt seems like onRequest/onResponse are broken in 1.12.0. This example illustrates the problem:
public class OnRequestResponseTest {
public static void main(String[] args) {
try (Playwright playwright = Playwright.create()) {
try (Browser browser = playwright.chromium().launch()) {
BrowserContext context = browser.newContext();
Page page = context.newPage();
page.onRequest(r -> {
System.out.println("request: " + r);
});
page.onResponse(r -> {
System.out.println("response: " + r);
});
page.navigate("https://example.com/");
System.out.println(page.title());
}
}
}
}
Output 1.11.0:
request: https://example.com/
response: https://example.com/
Example Domain
Output 1.12.0
Example Domain
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Mocking API errors doesn't work in 1.20.0 · Issue #7213 - GitHub
The request should be mocked and no error thrown. This used to work in 1.19.0. What is your public website URL? (or attach...
Read more >Chrome extension API webRequest doesn't work well on ...
So I'm trying the Chrome API webRequest. Everything works fine on request, but on response, I got problems. My testing is pretty straight ......
Read more >Changelog - Proxyman
Bugs. Fixed: Reverse Proxy Window Theme is incorrect if the Proxyman theme ... [UI/UX] Helper Tool Recommendation if the app does not capture...
Read more >Changelog - hapi.dev
Preserve original response status on error after write, fix status message. #4182. server.inject does not reflect actual HTTP response in case of stream ......
Read more >azure-core - PyPI
An error response with status code 4xx. This will not be raised directly by the Azure core pipeline. TooManyRedirectsError. An error raised when...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Odd, it works just fine when I run it on a clean projec.t Sorry to waste your time. Must have something screwy in my setup.
Make sure that the Playwright server version you connect to matches that of the client.