|
From: Assaf L. <As...@hy...> - 2008-02-19 09:52:24
|
Hi,
I'm trying Watsup for Gui testing of Qt/C++ windows application.
When trying to findControl, I'm getting the following errors:
C:\Python24\Lib\site-packages\tools>python
C:\Sandbox\Python\watsup\login.py
Traceback (most recent call last):
File "C:\Sandbox\Python\watsup\login.py", line 20, in ?
loginEdit=findControl(SomeApp,wantedText='loginEdit',
wantedClass='QWidget',selectionFunction=0)
File "C:\Python24\lib\site-packages\watsup\winGuiAuto.py", line 324,
in findControl
selectionFunction=selectionFunction)
File "C:\Python24\lib\site-packages\watsup\winGuiAuto.py", line 452,
in findControls
hlist=searchChildWindows(topHwnd)
File "C:\Python24\lib\site-packages\watsup\winGuiAuto.py", line 426,
in searchChildWindows
childWindows)
TypeError: an integer is required
My code is (some private data is replaced by XXX):
[... after launching the app...]
SomeApp=findTopWindows(wantedText='Login')
loginEdit=findControl(SomeApp,wantedText='loginEdit',
wantedClass='QWidget')
passwordEdit=findControl(SomeApp,wantedText='passwordEdit',
wantedClass='QWidget')
Diving into winGuiAuto.py, I saw that code is doing a child window check
and for some reason it fails.
Any thoughts? What am I missing?
Thanks in advance, Assaf
|