[🐛 Bug]: Some dev tool request captured in 'Network.requestWillBeSent()' in request sent listener but not in 'Network.responseReceived()' response received listener #15397
Labels
I-defect
Something is not working as intended
J-issue-template
Applied to issues not following the template, or missing information.
What happened?
Hi Team
Our team wants to check all API response times using selenium. We have different domains like media, impulse, or application domains.
when we add the below listener we get all domains including media, mpulse, and application domains here
devtool.addListener(Network.requestWillBeSent(), req -> {
System.out.println(req.getRequest().getUrl());
});
But the concern is when we add the below listener we get only the application domain URL. We don't get media and impulse URL in the below listener
devtool.addListener(Network.responseReceived(), response -> {
Response res=response.getResponse();
String responseTime=String.valueOf(res.getHeaders().get("x-response-time"));
System.out.println(req.getRequest().getUrl() +" "+responseTime );
});
Could anyone please help on the above issue
our main requirement is to get the response time of all domain URLs including media, impulse URL
Thanks
How can we reproduce the issue?
Relevant log output
Operating System
Windows, Linux
Selenium version
java 21
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
Chrome Driver 132.0
Are you using Selenium Grid?
4.28.1
The text was updated successfully, but these errors were encountered: