After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 583021 - If an application changes a context, it is no longer found by LDTP
If an application changes a context, it is no longer found by LDTP
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
1.6.0
Other All
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-05-18 07:55 UTC by Ara Pulido
Modified: 2009-06-03 17:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ara Pulido 2009-05-18 07:55:36 UTC
Please describe the problem:
Using this script (excerpt)

[...]
evolution = ooldtp.context("*Evolution")
mnuComposeNew = evolution.getchild("mnuComposeNewMessage")
mnuComposeNew.click()
ldtp.waittillguiexist("frmComposeMessage")
compose_window = ooldtp.context("frmComposeMessage"")
txtTo = compose_window.getchild("txtTo")
txtTo.settextvalue("test@test.org")
txtSubject = compose_window.getchild("txtSubject")
txtSubject.settextvalue("Greetings")
   
txtBody = compose_window.getchild("txt6")
txtBody.settextvalue("This is a test")

As the name of the compose window changes to the subject, the window is no longer found, but the LDTP server loses the application as well:

Search window name: frmComposeMessage - Inbox (0 total) - Evolution - frmInbox(0total)-Evolution
Window does not exist
child_name: Greetings
Before strip Greetings - After Greetings
window_name: frmGreetings
Search window name: frmComposeMessage - Greetings - frmGreetings
Window does not exist
Accessible application name: evolution.py
Child count: 0
Application: evolution not running
Unable to get handle



Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:
The window is not found, but the application is found and a proper error is returned

Does this happen every time?
Yes

Other information:
Comment 1 Nagappan Alagappan 2009-06-02 06:20:45 UTC
Ara, Thanks for the bug report. Fixed in git.