I am not able to switch the WebDriver control to the popup window, only the button popup gets opened.
I've tried using the getWindowHandles() but it only returns the window handle of the main window.
I also tried using this command switchTo.window("window name") but it didn't work.
Please help me with this issue