GNOME Bugzilla – Bug 583021
If an application changes a context, it is no longer found by LDTP
Last modified: 2009-06-03 17:35:38 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:
Ara, Thanks for the bug report. Fixed in git.