Dre*_*ner 11 eclipse selenium selenium-webdriver
我正在使用:
错误消息是
org.openqa.selenium包可以从多个模块访问:client.combined,net.bytebuddy"
小智 29
在ModulePath中添加外部jar时会发生这种情况.
方案:
我对 Selenium 一无所知,但看起来您有两个模块,其中包含完全相同的包名称:
因此,当您说例如import org.openqa.selenium.WebDriverEclipse 不知道您是否想使用来自 的包client.combined还是来自net.bytebuddy.
您需要在该导入语句中添加一个前缀,该前缀将指定您是org.openqa.selenium从导入包client.combined还是从net.bytebuddy.
您可以通过执行以下操作来做到这一点:
import client.combined.org.openqa.selenium.WebDriverimport client.combined.org.openqa.selenium.firefox.FirefoxDriver或者
import net.bytebuddy.org.openqa.selenium.WebDriverimport net.bytebuddy.org.openqa.selenium.firefox.FirefoxDriver您还可以尝试从项目中删除其中一个包 (client.combined或)net.bytebuddy
| 归档时间: |
|
| 查看次数: |
30923 次 |
| 最近记录: |