GNOME Bugzilla – Bug 344179
closewindow function not working
Last modified: 2006-06-22 18:40:40 UTC
Please describe the problem: the function closewindow (syntax: closewindow('<window_name>') is not working. It always returns 0, and does not close the window Steps to reproduce: 1. start python,ldtp in separate terminals 2. start any application, for eg gedit 3. type closeapp('*gedit') in the python prompt (after importing from ldtp,ldtputils) Actual results: The function returns 0, and the window is not closed (the window does exist, this can be confirmed by guiexist('*gedit') which returns 1) Expected results: The function must return 1, and window must close Does this happen every time? Yes Other information:
Srinivas: closeapp does not support regular expression. It in turn uses LTFX. But it should have return appropriate error message. We will look into it.
Nags, in python/ldtputils.py the code for closewindow() seems to be empty, a simple return statement alone. The same seems to be the case for pyldtp too.
'close_win' seems to be a broken feature of ltfx, the following was a comment in the ltfx code: case CLOSE_WIN: //dont use, unmapping is not closing, and its { //not clean
BUG in ltfx and not in LDTP. closewindow() cann be implemented until fixed in ltfx. Closing the bug.