Skip to content

[🐛 Bug]: Cannot resolve Selenium Java Bindings artifacts as modules (JPMS) in JDK 11 #12089

@tarunaggarwal23

Description

@tarunaggarwal23

What happened?

Java: OpenJDK 11

Selenium: 4.6.0

Maven: 3.5.2

Eclipse: 2022-12 (4.26.0)

I am getting this error: "cannot be resolved to a module" for the following lines:

            requires selenium.api;

            requires selenium.firefox.driver;

            requires selenium.remote.driver;

            requires selenium.ie.driver;

            requires selenium.edge.driver;

            requires selenium.chrome.driver;

Deleting module-info.Java resolves all errors.

How can we reproduce the issue?

mvn -U -X clean install -Dmaven.test.skip=true -Dmaven.wagon.http.ssl.insecure=true

Relevant log output

module not found: selenium.api

module not found: selenium.remote.driver

Operating System

Windows 10

Selenium version

4.6.0

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

Na

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

Na

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-defectSomething is not working as intendedJ-awaiting answerQuestion asked of user; a reply moves it to triage again

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions