I am unable to launch the browser through TestNG with Selenium 2.0.
Please look into the below code & need your kind assistance.
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
public class Annotations {
@Test
public void openBrowser(){
WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com");
}
}