[LDTP-Dev] [Bug 547541] New: gettextvalue in ooldtp is passing one extra argument
LDTP (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Wed Aug 13 00:16:22 PDT 2008
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=547541
LDTP | pyldtp | Ver: 1.2.0
Summary: gettextvalue in ooldtp is passing one extra argument
Product: LDTP
Version: 1.2.0
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: pyldtp
AssignedTo: ldtp-maint at gnome.bugs
ReportedBy: apulido at gmail.com
QAContact: ldtp-dev at lists.freedesktop.org
GNOME version: Unspecified
GNOME milestone: Unspecified
Please describe the problem:
In ooldtp.py gettextvalue is passing one more argument to ldtp.gettextvalue.
If you have a text component and want to get the text value, you would do:
textcomponent = mywindow.getchild('txt0')
mytext = textcomponent.gettextvalue()
That would raise an exception: Min 1 argument required
That is not true, as the minimum arguments for ldtp.gettextvalue are only the
context and the component name, which we already have.
Moreover, if you try to pass a fake argument to it, it raise another exception:
File "/var/lib/python-support/python2.5/ooldtp.py", line 342, in gettextvalue
return ldtp.gettextvalue (self.__window, name, textProperty, startPosition,
endPosition)
TypeError: gettextvalue() takes at most 4 arguments (5 given)
Steps to reproduce:
Actual results:
Expected results:
Does this happen every time?
Yes
Other information:
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=547541.
More information about the LDTP-dev
mailing list