Description
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