[LDTP-Dev] [Bug 683466] New: enterstring() swaps string

LDTP (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 6 01:22:15 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=683466
  LDTP | ldtp2 | 2.3.0

           Summary: enterstring() swaps string
    Classification: Other
           Product: LDTP
           Version: 2.3.0
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtp2
        AssignedTo: ldtp-dev at lists.freedesktop.org
        ReportedBy: f.paetzke at gmail.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: ---


Hi,

the following code produces not always the desired output. mostly it's '213' or
'123'. 

#! /usr/bin/env python2
from ldtp import *

launchapp('gedit')
waittillguiexist('*-gedit')
print(enterstring('123'))


i thought it might be a timing problem so i tried this:


#! /usr/bin/env python2
import time
from ldtp import *

launchapp('gedit')
waittillguiexist('*-gedit')
for c in '123':
    print(enterstring(c))
    time.sleep(0.7)


and it seems to work.


best regards
friedrich

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the LDTP-dev mailing list