I have a test case in which there are 3 methods
Class
{
Method1();
Method2();
Method3()
}
Now, I want to run Method1() in IE, Method2() in FF and Method3() in Chrome. I have written the code and it works pretty fine. Only problem is that it gives an error in Console "org.openqa.selenium.remote.SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()?"
After Method1() gets completed, I quit driver like
driver.quit();
driver=null;
driver = new FirefoxDriver();
Similarly for Chrome also after Method2() gets completed.
Can someone please guide me why I am getting this message and what's the solution ?
I don't want to use Selenium grid. Thanks