You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
What steps will reproduce the problem?
Here is my code:
WebDriver driver =CFWebDriver.INSTANCE.getDriver();
String currentWindowHandle=driver.getWindowHandle();
forwardCaseLink.click();
Thread.sleep(3000);
Set<String> openWindowsList=driver.getWindowHandles();
String popUpWindowHandle=null;
for(String windowHandle:openWindowsList)
{
if (!windowHandle.equals(currentWindowHandle))
popUpWindowHandle=windowHandle;
}
driver.switchTo().window(popUpWindowHandle);
//popUpWindowHandle remains null giving null pointer exception HERE.
forwardCaseForm_fcCloseButton.click();
What is the expected output? What do you see instead?
Null Pointer Exception
What version of the product are you using? On what operating system?
Window 7,IE7
Please provide any additional information below.