简体   繁体   中英

Selenium Web driver 3.3.1

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 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?

将“webdriver.firefox.marionette”更改为“webdriver.gecko.driver”

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 .

For more details on how to update above settings in eclipse, refer this site .

Now restart your eclipse once and try to run your automation script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM