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
On rendering a url on selenium grid, even after a session is closed and completed, the Selector manager threads in case of jdk http client and in case of default http client, AsycHttpClient threads are hanging even long after the session is closed on the grid.
How can we reproduce the issue?
public Optional<WebData> runSelenium(String domain) {
var capabilities = Optional.of(new ChromeOptions())
.map(options -> options.addArguments(List.of("--headless=new",
"--disable-application-cache",
"--disable-features=IsolateOrigins,site-per-process",
"--no-sandbox",
"--disable-dev-shm-usage",
"--disable-web-security",
"--disable-blink-features=AutomationControlled",
"--disable-site-isolation-trials",
"--remote-allow-origins=*",
"--disable-popup-blocking"
)))
.map(options -> options.addArguments("--user,agent="
+ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0"
+ ".3945.117 Safari/537.36"))
.map(options -> (ChromeOptions) options.setPageLoadStrategy(PageLoadStrategy.fromString("normal")))
.map(options -> (ChromeOptions) options.setPageLoadTimeout(Duration.ofSeconds(60)))
.map(options -> (ChromeOptions) options.setUnhandledPromptBehaviour(UnexpectedAlertBehaviour.DISMISS))
.get();
var url = new URL("http://localhost:4444/wd/hub");
var driver = new RemoteWebDriver(url, capabilities, false);
try {
driver.switchTo().newWindow(WindowType.WINDOW);
driver.get("http://" + "google.com");driver.close();
driver.switchTo().newWindow(WindowType.WINDOW);
driver.get("http://" + "phonepe.com");driver.close();
} catch (Exception e) {
}
returnOptional.empty();
}
Relevant log output
.
Operating System
macOs, Debian GNU/Linux 10
Selenium version
Java 17
What are the browser(s) and version(s) where you see this issue?
Chrome 113
What are the browser driver(s) and version(s) where you see this issue?
chromedriver-113.0-grid-4.9.1-20230508
Are you using Selenium Grid?
4.9.1-20230508
The text was updated successfully, but these errors were encountered:
@b-chinmay, 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.
What happened?
On rendering a url on selenium grid, even after a session is closed and completed, the Selector manager threads in case of jdk http client and in case of default http client, AsycHttpClient threads are hanging even long after the session is closed on the grid.
![Screenshot 2023-06-15 at 1 56 41 PM](https://private-user-images.githubusercontent.com/104977653/246047172-04e48f35-bdd3-4f7b-b83e-e03167d55999.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjAwMzUsIm5iZiI6MTczOTIxOTczNSwicGF0aCI6Ii8xMDQ5Nzc2NTMvMjQ2MDQ3MTcyLTA0ZTQ4ZjM1LWJkZDMtNGY3Yi1iODNlLWUwMzE2N2Q1NTk5OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMDM1MzVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NDhmZjIxOTFjMzU3ZjFlMzc3M2M1YjE0NDViYzI3M2U0OTA1ZDgwODkyYTAwYWYyZmZhZDU1M2VmNTU5Y2YxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.DI1rj_CIDfJmhpvBYlyijuLjhe2FJlbzARX-XIEtp0Q)
How can we reproduce the issue?
Relevant log output
.
Operating System
macOs, Debian GNU/Linux 10
Selenium version
Java 17
What are the browser(s) and version(s) where you see this issue?
Chrome 113
What are the browser driver(s) and version(s) where you see this issue?
chromedriver-113.0-grid-4.9.1-20230508
Are you using Selenium Grid?
4.9.1-20230508
The text was updated successfully, but these errors were encountered: