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]: Some dev tool request captured in 'Network.requestWillBeSent()' in request sent listener but not in 'Network.responseReceived()' response received listener #15397

Open
gopal1414 opened this issue Mar 10, 2025 · 2 comments
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.

Comments

@gopal1414
Copy link

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

Copy link

@gopal1414, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol diemol added I-issue-template Applied to issues not following the template, or missing information. and removed needs-triaging labels Mar 10, 2025
Copy link

Hi, @gopal1414.
Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.
Projects
None yet
Development

No branches or pull requests

2 participants