@After public void tearDown() throws Exception { driver.findElement(By.id("Cancel_Student_wizard")).click(); driver.switchTo().window(parentWindow); super.tearDown(); }
@Before public void setUp() throws Exception { super.setUp(); parentWindow = driver.getWindowHandle(); }