[LDTP-Dev] [Bug 638229] onwindowcreate fails with CannotSendRequest

LDTP (bugzilla.gnome.org) bugzilla at gnome.org
Tue Dec 28 16:00:08 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=638229
  LDTP | ldtp2 | unspecified

Nagappan <nagappan> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nagappan at gmail.com

--- Comment #1 from Nagappan <nagappan at gmail.com> 2010-12-29 00:00:02 UTC ---
I modified the code to work with gedit and it works fine !

#!/usr/bin/python

import ldtp, ooldtp

def cb(*data):
    print "=== in dlgAuthenticate"
    ldtp.waittillguiexist('dlgFind')
    for arg in data:
        print arg

ldtp.launchapp('gedit')
ldtp.waittillguiexist('*-gedit')
ldtp.wait(1)
ldtp.onwindowcreate('dlgFind', cb, 'SuperSecretPassword')

print "=== clicking btn2"
ldtp.click('*-gedit', 'btnFind')
print "=== btn2 clicked"
ldtp.wait(2)

console output:


nags at nagappan-laptop:/tmp$ python test.py

** (-c:6223): WARNING **: Trying to register gtype 'WnckWindowState' as enum
when in fact it is of type 'GFlags'

** (-c:6223): WARNING **: Trying to register gtype 'WnckWindowActions' as enum
when in fact it is of type 'GFlags'

** (-c:6223): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask'
as enum when in fact it is of type 'GFlags'
GTK Accessibility Module initialized
=== clicking btn2
=== btn2 clicked
=== in dlgAuthenticate
SuperSecretPassword

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the LDTP-dev mailing list