What steps will reproduce the problem?
1. Set up (install Python 3.4, pywinauto-0.4.0 on Windows 7; fix source code to
let the code be Python 3.4 compatible; set PYTHONPATH)
2. Browse to pywinauto-0.4.0\pywinauto\unittests
3. Run "python test_application.py"
What is the expected output? What do you see instead?
The unit tests passed. However, the test didn't seem to let the application
menu recognize menu selection, such as (MenuSelect("File->Exit")). Below shows
a part of the unit test log messages
======================================================================
ERROR: test__init__ (__main__.WindowSpecificationTestCases)
Test creating a new spec by hand
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_application.py", line 417, in tearDown
self.app.UntitledNotepad.MenuSelect("File->Exit")
File "C:\pywinauto-0.4.0\pywinauto\controls\HwndWrapper.py", line 1195, in MenuSelect
self.MenuItem(path).Select()
File "C:\pywinauto-0.4.0\pywinauto\controls\HwndWrapper.py", line 1145, in MenuItem
return self.Menu().GetMenuPath(path, appdata = menu_appdata)[-1]
File "C:\pywinauto-0.4.0\pywinauto\controls\menuwrapper.py", line 418, in GetMenuPath
item_texts = [item.Text() for item in self.Items()]
File "C:\pywinauto-0.4.0\pywinauto\controls\menuwrapper.py", line 418, in <listcomp>
item_texts = [item.Text() for item in self.Items()]
File "C:\pywinauto-0.4.0\pywinauto\controls\menuwrapper.py", line 138, in Text
info = self._read_item()
File "C:\pywinauto-0.4.0\pywinauto\controls\menuwrapper.py", line 90, in _read_item
raise ctypes.WinError()
OSError: [WinError 87] パラメーターが間違っています。
What version of the product are you using? On what operating system?
pywinauto-0.4.0, Windows 7
Please provide any additional information below.
The OS was Japanese (64-bit) one, so part of the error messages contained
Japanese characters.
Original issue reported on code.google.com by chanpato...@gmail.com on 23 May 2014 at 4:34
Original issue reported on code.google.com by
chanpato...@gmail.com
on 23 May 2014 at 4:34