Re: [Pywinauto-users] RE: What's the user experience with pywinauto? (LONG)
Status: Alpha
Brought to you by:
mcmahon_m
From: <gil...@ea...> - 2006-02-15 21:57:53
|
Mark, I can't thank you enough for your help!!! I was just drafting an email concerning what you mentioned. As I am now becoming more familiar with Pywinauto, I ran the following line: print wndw.MenuItems() resulting in: [] and confirming: raise MatchError(items = text_item_map.keys(), tofind = search_text) pywinauto.findbestmatch.MatchError: Could not find 'File' in '[]' And, YES, I would love to create documentation for newbies, as I begin to understand things better!!! BTW, in my last message, I had forgotten to replace the line, 'wndw.MenuSelect("File->New->Window")', which I was using to test out my calls to the dialog menu. Thank you and Best Regards, gil_c > [Original Message] > From: Mark Mc Mahon <mar...@gm...> > To: <gil...@ea...> > Cc: <pyw...@li...> > Date: 2/15/2006 4:37:15 PM > Subject: Re: [Pywinauto-users] RE: What's the user experience with pywinauto? (LONG) > > Hi Gil_c, > > Regarding working with IE, I am preparing for a new release and I was > going to implement a basic "Download Web Page Using IE" script. > > I noticed that IE doesn't actually have Menu's - it has toolbars that > look like menu's. Unfortunately MenuSelect will not work with those. > > So you will not be able to write > app.MicrosoftInternetExplorer.MenuSelect("File->SaveAs") but instead > will have to use TypeKeys()... > app.MicrosoftInternetExplorer.TypeKeys("%FA") # File -> Save As > .... > # and then to exit... > app.MicrosoftInternetExplorer.TypeKeys("%FC") # File -> Close > > Hope that helps you :-) > Mark |