-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Closed as not planned
Copy link
Labels
B-gridEverything grid and server relatedEverything grid and server relatedI-defectSomething is not working as intendedSomething is not working as intendedI-staleR-help wantedIssues looking for contributionsIssues looking for contributions
Description
What happened?
Run Selenium server as a standalone or hub/node without --enable-managed-downloads true parameter
for example, java -jar /root/selenium-server-.jar standalone
Run a Selenium for any download files supported browser with driver option setEnableDownloads(true)
Receive error message org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Is it a bug or expected behavior?
If this is expected behavior could error exception be more informative? For example, say something about --enable-managed-downloads parameter
How can we reproduce the issue?
Run Selenium server as a standalone or hub/node without --enable-managed-downloads true parameter
for example, java -jar /root/selenium-server-<version>.jar standalone
Run a Selenium test for any download files supported browser with driver option setEnableDownloads(true)
for example
`ChromeOptions options = new ChromeOptions();
options.setEnableDownloads(true);
WebDriver driver = new RemoteWebDriver(new URL("http://gridUrl:4444"), chromeOptions);Relevant log output
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'host', ip: '1xx.1xx.1.79'
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:232)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:161)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:147)
Caused by: org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException
Build info: version: '4.21.0', revision: '79ed462ef4'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.6'
Driver info: driver.version: DelegatingWebDriver
at org.openqa.selenium.remote.http.jdk.JdkHttpClient.execute0(JdkHttpClient.java:399)
at org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)
at org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:55)
at org.openqa.selenium.remote.http.jdk.JdkHttpClient.execute(JdkHttpClient.java:355)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:89)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:75)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:61)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:162)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518)
... 54 more
Caused by: java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
at org.openqa.selenium.remote.http.jdk.JdkHttpClient.execute0(JdkHttpClient.java:382)
... 62 moreOperating System
Window, Linux
Selenium version
4.21.0
What are the browser(s) and version(s) where you see this issue?
Chrome 126, Edge 125, Firefox ESR 115.12.0
What are the browser driver(s) and version(s) where you see this issue?
Chrome WebDriver 126.0.6478.55, Gecko 0.34.0
Are you using Selenium Grid?
4.21.0
Metadata
Metadata
Assignees
Labels
B-gridEverything grid and server relatedEverything grid and server relatedI-defectSomething is not working as intendedSomething is not working as intendedI-staleR-help wantedIssues looking for contributionsIssues looking for contributions