The package org.openqa.selenium is accessible from more than one module The package org.openqa.selenium is accessible from more than one module selenium selenium

The package org.openqa.selenium is accessible from more than one module


This happens when you have added the external jars in the ModulePath.

Solution:

  1. Remove the external jars from the node "Modulepath".
  2. Select the node "Classpath" then add the external jars.
  3. Review that all the jars are under the node "Classpath".


The problem is that you are adding Jar files to your Modulepath instead of Classpath. Go toProject->BuildPath->Config BuildPath->Remove Jars from Modulepath->then click on classpath->Add external selenium jar files.

click on the screenshot for more clarity


Add all the required jar files inside classpath instead of module path. The same issue was also occurred with me but after adding the jars to classpath it got resolved.