ldtp fails with comboselect with error xmlrpclib.Fault: <Fault 8002: ''>

Bug #1772364 reported by Loginov Ilya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ldtp (Ubuntu)
New
Undecided
Unassigned

Bug Description

log@stc:~/python_project$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldtp import *
/usr/local/lib/python2.7/dist-packages/ldtpd/core.py:29: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Wnck as wnck
>>> guiexist ('*KTR')
1
>>> getallitem('*KTR', 'cboAutolvl')
['Auto lvl', 'Auto crd', '1 N', '2 NE', '3 SE', '4 S', '5 SW', '6 NW', '7 WCH', '8']
>>> comboselect('*KTR', 'cboAutolvl', '2 NE')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/ldtp/client.py", line 75, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
    verbose=self.__verbose
  File "/usr/local/lib/python2.7/dist-packages/ldtp/client.py", line 200, in request
    raise e
xmlrpclib.Fault: <Fault 8002: ''>

Package: LDTP 3.5.0 released - Tuesday Apr 30 2013
Description: Ubuntu 16.04.4 LTS
Uname: Linux 4.13.0-38-generic x86_64

Loginov Ilya (loginoff)
description: updated
Revision history for this message
Loginov Ilya (loginoff) wrote :

It is another way to implement

def selectPosition(nameWin, cbo, nameItem):
 position=getallitem(nameWin, cbo).index(nameItem)
 click(nameWin, cbo)
 for number in range(position):
  enterstring ('<down>')
 enterstring ('<enter>')

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.