You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[🐛 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
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
The text was updated successfully, but these errors were encountered:
@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.
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.
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: