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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: input.readArray is not find #13933

Closed
danchaobing opened this issue May 11, 2024 · 3 comments
Closed

[馃悰 Bug]: input.readArray is not find #13933

danchaobing opened this issue May 11, 2024 · 3 comments

Comments

@danchaobing
Copy link

What happened?

In Java17, using selenium devtools, it was found that the input.readArray method does not exist.

image

My pom.xml only import selenium-java 4.20.0 for selenium

image image

How can we reproduce the issue?

1. Create java workspace, use java 17.0.9
2. Use Selenium 4.20.0
3. Create ChromeDevTools
3.1 this.chromeDevTools.createSession();
3.2 this.chromeDevTools.send(Network.enable(Optional.empty(), Optional.empty(), Optional.empty()));
3.3 this.chromeDriver.get("https://www.google.com");
4. Run java workspace

Relevant log output

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    org.openqa.selenium.devtools.v124.target.Target.getTargets(Target.java:150)

The following method did not exist:

    'java.util.function.Function org.openqa.selenium.devtools.ConverterFunctions.map(java.lang.String, java.util.function.Function)'

The calling method's class, org.openqa.selenium.devtools.v124.target.Target, was loaded from the following location:

    jar:file:/Users/user/.m2/repository/org/seleniumhq/selenium/selenium-devtools-v124/4.20.0/selenium-devtools-v124-4.20.0.jar!/org/openqa/selenium/devtools/v124/target/Target.class

The called method's class, org.openqa.selenium.devtools.ConverterFunctions, is available from the following locations:

    jar:file:/Users/user/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/4.1.4/selenium-remote-driver-4.1.4.jar!/org/openqa/selenium/devtools/ConverterFunctions.class

The called method's class hierarchy was loaded from the following locations:

    org.openqa.selenium.devtools.ConverterFunctions: file:/Users/user/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/4.1.4/selenium-remote-driver-4.1.4.jar


Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.openqa.selenium.devtools.v124.target.Target and org.openqa.selenium.devtools.ConverterFunctions

Operating System

macOS

Selenium version

4.20.0

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

Chrome 124

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

ChromeDriver 124.0.6367.201

Are you using Selenium Grid?

No response

Copy link

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

@diemol
Copy link
Member

diemol commented May 13, 2024

You need to explicitly add Selenium's version to overwrite the version given by Spring.

See a duplicated issue.

@diemol diemol closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@danchaobing
Copy link
Author

thank you! it's worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants