I am using white for the wpf automation testing .. when I use Application.getWindow() it returns me Core.UIItems.WindowItems.window . but when I try to cast it to Core.UIItems.WindowItems.WPFWindow on runtime it "Unable to cast exception" is thrown. though WPFWindow inherits Window this fails... Help me.... Thanks in advance...