I am using Eclipse IDE
for selenium 3.3.1
. I have added selenium 3.3.1
jar files which were in and out of the lib folder.
我正在使用Eclipse IDE作为selenium 3.3.1。我已经添加了selenium 3.3.1 jar文件,这些文件在lib文件夹内外都有。
Eclipse version is Helios Service Release 1.
firefox version is 52.0.1(32 Bit).
JDK version is 1.8.0_05.
But still i got the error
但我还是犯了错误
import org.openqa.selenium.firefox cannot be resolved.
I have also tried below code:
我也试过以下代码:
System.setProperty("webdriver.firefox.marionette","C:\\selenium-java-3.3.1\\geckodriver-v0.15.0-win64\\geckodriver.exe");
But, It didn't get work for me.
但是,它并没有为我找到工作。
Can anyone help me on this issue?
在这个问题上有人能帮助我吗?
2 个解决方案
#1
0
Change "webdriver.firefox.marionette" to "webdriver.gecko.driver"
改变“webdriver.firefox。木偶”到“webdriver.gecko.driver”
#2
0
Try this way.
尝试这种方式。
1) Update firefox browser version 52 or above
2) Update the selenium java jar files, you can download updated jar files from this site.
3) Update the gecko driver as well, you can download updated gecko driver from this site.
更新firefox浏览器版本52或以上更新selenium java jar文件,您可以从这个站点下载更新后的jar文件。3)更新gecko驱动程序,你可以从这个站点下载更新的gecko驱动程序。
For more details on how to update above settings in eclipse, refer this site.
有关如何在eclipse中更新上述设置的详细信息,请参考此站点。
Now restart your eclipse once and try to run your automation script.
现在重新启动一次eclipse,并尝试运行您的自动化脚本。
#1
0
Change "webdriver.firefox.marionette" to "webdriver.gecko.driver"
改变“webdriver.firefox。木偶”到“webdriver.gecko.driver”
#2
0
Try this way.
尝试这种方式。
1) Update firefox browser version 52 or above
2) Update the selenium java jar files, you can download updated jar files from this site.
3) Update the gecko driver as well, you can download updated gecko driver from this site.
更新firefox浏览器版本52或以上更新selenium java jar文件,您可以从这个站点下载更新后的jar文件。3)更新gecko驱动程序,你可以从这个站点下载更新的gecko驱动程序。
For more details on how to update above settings in eclipse, refer this site.
有关如何在eclipse中更新上述设置的详细信息,请参考此站点。
Now restart your eclipse once and try to run your automation script.
现在重新启动一次eclipse,并尝试运行您的自动化脚本。