[LDTP-Dev] [Bug 381899] New: stateenabled function doesn't work

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Dec 3 07:45:34 PST 2006


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=381899

  LDTP | ldtp | Ver: 0.6.x

           Summary: stateenabled function doesn't work
           Product: LDTP
           Version: 0.6.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: srinics_202 at yahoo.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
the stateenabled function is used to find if an object is enabled in a window.
When used, this function gives the following error :

stateenabled('*gedit','btnPrint')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.4/site-packages/ldtp.py", line 2458, in
stateenabled
    _message = generatexml (command.STATENEABLED, _requestId, windowName,
componentName)
AttributeError: class command has no attribute 'STATENEABLED'




Steps to reproduce:
1. open python shell
2. enter from ldtp import *
3. then enter stateenabled('<some-win-name>','<some-button>') .. i used *gedit
as window name and btnPrint for the component


Actual results:


Expected results:
1 or 0 depending on the state of the object (disabled or enabled)

Does this happen every time?
yes

Other information:
i think 'STATENEABLED' is a typo in ldtp.py


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email


More information about the LDTP-dev mailing list