in reply to Perl on Windows: automate WPF applications, similar to Win32::GUI ?

I believe that either you're looking at the wrong module or you've listed the wrong module name in your post. The Win32::GUI module is used to create a GUI interface. The Win32::GuiTest module is used to automate GUI based applications.

I haven't tried to automate a GUI based application in a while, but is there a reason why you think that Win32::GuiTest can't/won't automate a GUI based WPF application?

  • Comment on Re: Perl on Windows: automate WPF applications, similar to Win32::GUI ?

Replies are listed 'Best First'.
Re^2: Perl on Windows: automate WPF applications, similar to Win32::GUI ?
by Anonymous Monk on Oct 13, 2015 at 22:06 UTC

    Hi dasgar,

    Since all windows is based on window ids/handles ... you can use Win32::GUI to automate the widgets provided by the module, they use the same APIs (user32.dll / gdi32.dll), its must easier to use Win32::GUI to deal with a list control than it is to use straight guitest calls

    WPF is a totally new api/library, and neither guitest nor win32::gui will work well with those, you have to use WPF IUAutomation... good luck with that

Re^2: Perl on Windows: automate WPF applications, similar to Win32::GUI ?
by localJoe (Initiate) on Oct 13, 2015 at 22:38 UTC
    @dasgar: Yes, you are right, I was wrong. I had the wrong module in mind, it is Win32:GuiTest that I meant. Win32::GuiTest detects the application but does not detect the child controls in a WPF application.