Errors in sample code when trying to use FirefoxDriver class | Selenium Forum
M
Posted on 08/12/2015
Code:

package p1;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Browse_FF {

public static void main(String[] args) {
// TODO Auto-generated method stub
FirefoxDriver f= new FirefoxDriver();



}

}

-------------------------------------------------------------------------
i get errors as per attachment & am unable to resolve it..
Please refer attachments.

please help me resolve it.Am badly struck.......

M
Replied on 09/12/2015

try

WebDriver driver = new FirefoxDriver();


M
Replied on 09/12/2015

what is the error you are getting?


M
Replied on 09/12/2015

Sir,

this issue got resolved when i included "selenium-server-standalone-2.48.2(1)" in project.
Am not sure if its ok to include this in project.

Regards,
Chaitra