Loading ...
Sorry, an error occurred while loading the content.

Re: MenuSelect Problems - Probably simple, but...

Expand Messages
  • Dennis K. Paulsen
    The problem could be related to msg#221 as you are maximizing (/max) the window when you start it. If this is the case, it will require that the fix mentioned
    Message 1 of 2 , Sep 11, 2003
    • 0 Attachment
      The problem could be related to msg#221 as you are maximizing (/max)
      the window when you start it. If this is the case, it will require
      that the fix mentioned there or a similar fix be implemented into
      Win32::GuiTest. In the interim, you can try testing the application
      non-maximized.

      Regards,
      Dennis K. Paulsen

      --- In perlguitest@yahoogroups.com, "yowshuflop" <gyows@a...> wrote:
      > I'm new to Win32::GuiTest and not super-proficient in perl. All I
      want
      > to do is open the Win32 app to be tested and hit File->New from the
      > menubar. I am trying to use the MenuSelect function, but it just
      dies.
      >
      > I tested the exemple MenuSelect (notepad) and it the function is
      > functioning properly.
      >
      > Any suggestions? Here is the code:
      >
      >
      >
      > use strict;
      > use Win32::GuiTest qw/
      > FindWindowLike
      > SetForegroundWindow
      > MenuSelect/;
      >
      >
      > # Launch App
      > system("start /max E:/\"Program Files\"/\"TOS 4.0\"/
      [APP_NAME].exe");
      > sleep 2;
      >
      > # Find application Window to test and pull it out front
      > my @windows = FindWindowLike(0, "[Window Title]", "");
      > SetForegroundWindow($windows[0]) if scalar @windows == 1;
      > sleep 2;
      >
      > # <--------------------Everything seems to work up to
      here!!!!!!!!!!!
      >
      > # use MenuSelect to create new policy
      > MenuSelect("&File|&New");
      >
      >
      >
      >
      > Thanks!
    Your message has been successfully submitted and would be delivered to recipients shortly.