1

Closed

HasPopup throws NullReferenceException

description

Hi,
I am working with Windows 7x64 at WCF project automation
 
Window.HasPopup throws NullReferenceException at first line of below method
 
public virtual List<AutomationElement> Descendants(AutomationSearchCondition automationSearchCondition)
    {
        AutomationElementCollection collection = automationElement.FindAll(TreeScope.Descendants, automationSearchCondition.Condition);
        var enumerable = collection.Cast<AutomationElement>();
        return new List<AutomationElement>(enumerable);
    }
 
If there is no popup. If there is popup method will return true as expected.
Closed Jul 28, 2013 at 12:33 PM by JakeGinnivan
Please report the issue on GitHub (https://github.com/TestStack/White) if it is still an issue. Issues raised on CodePlex will not be fixed.
Also include the version of TestStack.White you are using.

Thanks!

comments