I use selenium webdriver, run test with junit in internet explorer. I create webdriver for ie:
System.setProperty("webdriver.ie.driver", "IEDriverServer.exe"); InternetExplorerDriver driver = new InternetExplorerDriver();
I need continue my test, but using another class. All actions are executed in the same windows as in first test, so I do not need create new ie driver. How can I continue test execution? I try create just new webdriver in second test like
But after running first class test failes with java.lang.NullPointerException.