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]: Exception is thrown when trying to getDevTools() using latest SHAFT and chrome versions #1780

Open
roaamagdy opened this issue Oct 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working triage needs to be looked at

Comments

@roaamagdy
Copy link

  • Exception is thrown when trying to getDevTools() using latest SHAFT version 8.4.20241001-beta and chrome verison 129.0.6668.90

WebDriver augmentedDriver = (new Augmenter()).augment(driver.get().getDriver());

DevTools devTools = ((HasDevTools) augmentedDriver).getDevTools(); // Issue is here

  • Running locally gives this exception:
    org.openqa.selenium.devtools.DevToolsException: Unable to create DevTools connection Build info: version: '4.25.0', revision: '8a8aea2337' System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '21.0.2' Driver info: DevTools Connection

  • Running on remote server :
    java.lang.ClassCastException: class org.openqa.selenium.remote.RemoteWebDriver$ByteBuddy$ehToDnr1$ByteBuddy$8RtIVMNI cannot be cast to class org.openqa.selenium.devtools.HasDevTools (org.openqa.selenium.remote.RemoteWebDriver$ByteBuddy$ehToDnr1$ByteBuddy$8RtIVMNI is in unnamed module of loader net.bytebuddy.dynamic.loading.ByteArrayClassLoader @33627576; org.openqa.selenium.devtools.HasDevTools is in unnamed module of loader 'app')

  • Issue is fixed by adding --remote-debugging-port=9222 to chrome options chromeOptions.addArguments("--remote-debugging-port=9222");

@roaamagdy roaamagdy added bug Something isn't working triage needs to be looked at labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage needs to be looked at
Projects
None yet
Development

No branches or pull requests

2 participants