I am testing heavy web application on gwt. Test creates new instance of webdriver on each start, opens browser and loads a page.
Some time after, test becomes passed. I don't close browser after test, but when I rerun test, it initializes browser again. Is there any way to get instance of loaded browser and load the page on it?
upd:
I've tried to do:
public class BaseTest {
    protected static ApplicationManager app;
    @Before
    public void setUp() throws Exception {
        if (app == null) {
            app = new ApplicationManager();
            app.getLoginHelper().login();
        }
    }
}
And it is null on each start.
upd2:
I need something like:
initializating new web driver
running test1
running test2
running test3
...
all test are finished
and after rerun:
using previosly launched driver
running test1
running test2
running test3
...
all test are finished
 
     
     
    
: http://stackoverflow.com/questions/8990683/use-same-web-driver-throughout-selenium-suite This might help you out.!!! – Abhinav Dec 16 '15 at 12:38