The package org.openqa.selenium is accessible from more than one module: client.combined, htmlunit.driver, java.client, phantomjsdriver

The package org.openqa.selenium is accessible from more than one module: client.combined, htmlunit.driver, java.client, phantomjsdriver.

Above mentioned bug is appearing when importing ‘import org.openqa.selenium.By;’
‘import org.openqa.selenium.WebDriver;’ etc.

I also tried to remove some of the relevant jar files from build path, but by doing so i was unable to access either these imports from selenium or imports of Appium.
This is a big issue for me. It will be immense help if someone can provide the list of jar files which don’t contradict with each other and allow to access imports from both selenium and Appium.

do somebody have any solution for this problem? Kindly help.

The issue is resolved now.

Even I am having the same issue with Selenium. How did you get it resolved?

Thanks in advance!!

I was facing this issue when using mac OS, what OS your are using?
it’s batter if you can share the screenshot.
it might be that your are including multiple jar files of same jar. eg. client-combined-3.6.0-sources.jar and client-combined-3.7.0.jar