GNOME Bugzilla – Bug 683466
enterstring() swaps string
Last modified: 2018-09-11 19:53:01 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
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
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!