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]: Selenium 4.1.3 org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection. When running on Selenoid. #10565

Closed
sachinhr10 opened this issue Apr 20, 2022 · 3 comments

Comments

@sachinhr10
Copy link

sachinhr10 commented Apr 20, 2022

What happened?

org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection
is the error message.
Stack trace:
Driver info: DevTools Connection
20:35:31 at org.openqa.selenium.devtools.HasDevTools.lambda$getDevTools$0(HasDevTools.java:25)
20:35:31 at java.base/java.util.Optional.orElseThrow(Optional.java:401)
20:35:31 at org.openqa.selenium.devtools.HasDevTools.getDevTools(HasDevTools.java:25)
20:35:31 at org.openqa.selenium.remote.RemoteWebDriver$ByteBuddy$WfZIZ2kE.getDevTools(Unknown Source)
20:35:31 at com.logmein.piranha.webdriver.selenoidtests.SelenoidGridTest.testSelenoidChrome(SelenoidGridTest.java:38)

We're facing this issue when trying to create a session on Selenoid setup on a remote machine, whereas on local machine it works.

How can we reproduce the issue?

Facing this when running on Selenoid. 
driver = new RemoteWebDriver(
					URI.create("http://selenoid-ip:4444/wd/hub").toURL(),
					capabilities
					);
WebDriver webDriver = driver.webDriver();
        webDriver = new Augmenter().augment(webDriver);
        DevTools devTools =  ((HasDevTools) webDriver).getDevTools();
        devTools.createSession();

Relevant log output

20:35:31 org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection
20:35:31 Build info: version: '4.1.3', revision: '7b1ebf28ef'
20:35:31 System info: host: '', ip: '', os.name: 'Linux', os.arch: 'amd64', os.version: '', java.version: '13'
20:35:31 Driver info: DevTools Connection
20:35:31 	at org.openqa.selenium.devtools.HasDevTools.lambda$getDevTools$0(HasDevTools.java:25)
20:35:31 	at java.base/java.util.Optional.orElseThrow(Optional.java:401)
20:35:31 	at org.openqa.selenium.devtools.HasDevTools.getDevTools(HasDevTools.java:25)
20:35:31 	at org.openqa.selenium.remote.RemoteWebDriver$ByteBuddy$WfZIZ2kE.getDevTools(Unknown Source)
20:35:31 	at com.logmein.piranha.webdriver.selenoidtests.SelenoidGridTest.testSelenoidChrome(SelenoidGridTest.java:38)

Operating System

macOSBigsur, Linux

Selenium version

Java Selenium 4.1.3

What are the browser(s) and version(s) where you see this issue?

Chrome 100

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 100

Are you using Selenium Grid?

No response

@github-actions
Copy link

@sachinhr10, 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!

@sachinhr10 sachinhr10 changed the title [🐛 Bug]: Selenium 4.1.3 org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection [🐛 Bug]: Selenium 4.1.3 org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection Apr 20, 2022
@sachinhr10 sachinhr10 changed the title [🐛 Bug]: Selenium 4.1.3 org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection [🐛 Bug]: Selenium 4.1.3 org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection. When running on Selenoid. Apr 20, 2022
@diemol
Copy link
Member

diemol commented Apr 21, 2022

Please report the issue to the Selenoid project.

@diemol diemol closed this as completed Apr 21, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants