Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

getWindowHandles() is not working .i am using IE7 #1828

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 1828

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.

Reported by rahul189 on 2011-06-13 13:17:54

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions