Skip to content

[🐛 Bug]: Some dev tool request captured in 'Network.requestWillBeSent()' in request sent listener but not in 'Network.responseReceived()' response received listener #15397

Closed as not planned
@gopal1414

Description

@gopal1414

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?

try to run the above code on any application which includes different domains URL

Relevant log output

NA

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-defectSomething is not working as intendedJ-issue-templateApplied to issues not following the template, or missing information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions