The application is running and the window of the application is visible on the screen, but the coded ui test always gets a NullReferenceException:
- sampling = application
- sampling.Window = main window of the application
Code:
if(object.ReferenceEquals(sampling, null)) // sampling is not a null reference (debug output)
if(sampling == null) // sampling is not null
if(object.ReferenceEquals(sampling.Window, null)) // sampling.Window is not a null reference
if(sampling.Window == null) // sampling.Window is not null
if (sampling.Window.Exists) // sampling.Window exists? True
if(sampling.Window.TryGetClickablePoint(out pt)) // Got clickable point? False Point = {X=0,Y=0}
if(object.ReferenceEquals(sampling.Window.BoundingRectangle, null)) // Exception: object reference not set to an instance of an object.
if(object.ReferenceEquals(sampling.Window.ControlType, null)) // Exception: object reference not set to an instance of an object.
if(object.ReferenceEquals(sampling.Window.Name, null)) // Exception: object reference not set to an instance of an object.
if(object.ReferenceEquals(sampling.Window.ClassName, null)) // Exception: object reference not set to an instance of an object.
if(sampling.Window.BoundingRectangle == null) // Exception: object reference not set to an instance of an object.
if(sampling.Window.ControlType == null) // Exception: object reference not set to an instance of an object.
if(sampling.Window.Name == null) // Exception: object reference not set to an instance of an object.
if(sampling.Window.ClassName == null) // Exception: object reference not set to an instance of an object.