Hi, I am learning dogtail and may have found a bug. The following is my code and the results. The main error is that KeyCombo is not defined. Also, when I do the type(“cool”) command, it writes it in the KeyCombo part of the code… pretty
cool and a bit interesting… Thank you in advance for the help. Sincerely, John __________________________________________________ #!/usr/bin/python import time from dogtail.procedural import * import pdb focus.application('gedit') focus.frame('Unsaved Document 1 - gedit') click('Search') click('Find...') focus.dialog('Find') type("cool") pdb.set_trace() KeyCombo("Return") time.sleep(5) Output: bash-4.1$ ./enterText.py ** (enterText.py:23408): WARNING **: Trying to register gtype 'WnckWindowState' as flags when in fact it is of type 'GEnum' ** (enterText.py:23408): WARNING **: Trying to register gtype 'WnckWindowActions' as flags when in fact it is of type 'GEnum' ** (enterText.py:23408): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum' Creating logfile at /tmp/dogtail/logs/enterText_20140904-000957_debug ... Mouse button 1 click at (1046,63) Mouse button 1 click at (1159,86) > /home/huntejp/scratch/enterText.py(14)<module>() -> KeyCombo("Return") (Pdb) step NameError: "name 'KeyCombo' is not defined" > /home/huntejp/scratch/enterText.py(14)<module>() -> KeyCombo("Return") (Pdb) step --Return-- > /home/huntejp/scratch/enterText.py(14)<module>()->None -> KeyCombo("Return") (Pdb) step Traceback (most recent call last): File "./enterText.py", line 14, in <module> KeyCombo("Return") NameError: name 'KeyCombo' is not defined |
_______________________________________________ infrastructure mailing list infrastructure@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/infrastructure