dogtail-devel [Bug 344157] New: object.dump() output includes function names that cannot be executed
- From: "dogtail (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
- To: dogtail-devel-list gnome org
- Subject: dogtail-devel [Bug 344157] New: object.dump() output includes function names that cannot be executed
- Date: Wed, 7 Jun 2006 09:40:44 -0400 (EDT)
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=344157
dogtail | Framework | Ver: 0.4.x
Summary: object.dump() output includes function names that cannot
be executed
Product: dogtail
Version: 0.4.x
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: Framework
AssignedTo: dogtail-maint gnome bugs
ReportedBy: ldimaggi redhat com
QAContact: dogtail-maint gnome bugs
GNOME version: Unspecified
GNOME milestone: Unspecified
Please describe the problem:
This may be a user error, but something funny is going on here. Using the
dump() function on an object such as a GUI button returns a list of functions -
some of which are not executable for the button. Corresponding dir(Button)
output does not include these function names.
For example, selecting the 'Open' button in gedit returns a list of these
functions:
press
release
click
But, dir (Button) does not return press or release. This seems broken -
shouldn't the press/release functions always be available for a button?
Steps to reproduce:
Here's a series of commands entered into the Python interpreter that recreate
the problem:
>>> gedit = tree.root.application ('gedit')
>>> theButton = gedit.button('Open')
>>> dir (theButton)
['_Node__accessible', '_Node__action', '_Node__component',
'_Node__hideChildren', '_Node__nodeIsIdentifiable', '_Node__text', '__doc__',
'__getattr__', '__init__', '__module__', '__setattr__', '__str__',
'addSelection', 'blink', 'button', 'child', 'childLabelled', 'childNamed',
'click', 'contained', 'debugName', 'doAction', 'dump', 'findAncestor',
'findChild', 'findChildren', 'getAbsoluteSearchPath', 'getLogString',
'getNSelections', 'getRelativeSearch', 'getUserVisibleStrings', 'grabFocus',
'menu', 'menuItem', 'rawClick', 'rawType', 'removeSelection', 'satisfies',
'setSelection', 'tab', 'textentry', 'typeText']
>>> theButton.dump()
{"Open" button}
press
release
click
>>> theButton.click()
click on {"Open" button}
1
>>> theButton.press()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 485, in
__getattr__
else: raise AttributeError, attr
AttributeError: press
Actual results:
Expected results:
Does this happen every time?
Other information:
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact for the bug.
You are watching the assignee for the bug.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]