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]: NoSuchMethodError when calling DevTools#createSession #14288

Closed
Tiiita opened this issue Jul 20, 2024 · 3 comments
Closed

[🐛 Bug]: NoSuchMethodError when calling DevTools#createSession #14288

Tiiita opened this issue Jul 20, 2024 · 3 comments

Comments

@Tiiita
Copy link

Tiiita commented Jul 20, 2024

What happened?

Exception in thread "main" java.lang.NoSuchMethodError: 'java.util.function.Function org.openqa.selenium.devtools.ConverterFunctions.map(java.lang.String, java.util.function.Function)'
	at org.openqa.selenium.devtools.v126.target.Target.getTargets(Target.java:150)
	at org.openqa.selenium.devtools.v126.v126Target.getTargets(v126Target.java:55)
	at org.openqa.selenium.devtools.DevTools.findTarget(DevTools.java:157)
	at org.openqa.selenium.devtools.DevTools.createSession(DevTools.java:121)
	at org.openqa.selenium.devtools.DevTools.createSession(DevTools.java:109)
	at de.tiiita.util.NetworkListener.<init>(NetworkListener.java:20)
	at de.tiiita.task.TaskStarter.<init>(TaskStarter.java:24)
	at de.tiiita.task.TaskPreparator.startTasks(TaskPreparator.java:40)
	at de.tiiita.Main.login(Main.java:60)
	at de.tiiita.Main.run(Main.java:36)
	at de.tiiita.Main.main(Main.java:98)

How can we reproduce the issue?

DevTools devTools = ((ChromiumDriver) webDriver).getDevTools();
devTools.createSession();`

Relevant log output

Starting ChromeDriver 126.0.6478.182 (5b5d8292ddf182f8b2096fa665b473b6317906d5-refs/branch-heads/6478@{#1776}) on port 19958
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.

Operating System

Windows 11

Selenium version

Java 17, Selenium 4.8.0

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

Chrome v126

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

Newest version: 126.0.6478.182

Are you using Selenium Grid?

4.8.0

Copy link

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

@Tiiita
Copy link
Author

Tiiita commented Jul 20, 2024

I think my pom.xml is important so:
POM.txt

@Tiiita Tiiita closed this as completed Jul 21, 2024
Copy link

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

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

No branches or pull requests

1 participant