I am stuck at a situation.
Here i have created one testsuite with two test cases in it.
First test case is executed properly. In second test case, it throws error of java.lang.NullPointerException at Webdriver driver
Test Case:
public class second{
private WebDriver driver;
@Test
public void sample() throws Exception
{
System.out.println("tab bar");
driver.findElement(By.id("tabs"));
//My code
}
}
WebDriver?