After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683466 - enterstring() swaps string
enterstring() swaps string
Status: RESOLVED WONTFIX
Product: LDTP
Classification: Other
Component: ldtp2
2.3.0
Other Linux
: Normal normal
: ---
Assigned To: LDTP Development Mailing List
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2012-09-06 08:22 UTC by Friedrich Paetzke
Modified: 2018-09-11 19:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Friedrich Paetzke 2012-09-06 08:22:09 UTC
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
Comment 1 Nagappan Alagappan 2012-10-07 04:38:15 UTC
I tried your script in Ubuntu 11.04, I could not reproduce the issue, can you please provide your env ? BTW, I'm trying in VMware Fusion running on Mac OSX Mountain Lion. Thanks
Comment 2 André Klapper 2018-09-11 19:53:01 UTC
LDTP has moved to Github. If the problem reported in this GNOME Bugzilla ticket still exists in a recent LDTP version, please feel free to report the issue at 
  https://github.com/ldtp/ldtp2/issues

Thanks for your understanding and we apologize for the inconvenience!