<div dir="ltr">Hello,<div><br></div><div>What happens when you do something like this ?</div><div><br></div><div>for window in ldtp.getwindowlist():</div><div>  print window, ldtp.getobjectlist(window)</div><div><br></div><div>BTW what OS do you run this ? Whats the version of gnome/kde ?</div><div><br></div><div>Regards</div><div>Nagappan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 12:49 AM, 江芳 <span dir="ltr"><<a href="mailto:fang.jiang@cs2c.com.cn" target="_blank">fang.jiang@cs2c.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
    when the window name is chinese, I use getobjectlist() of LDTP ,display error:<br>
<br>
 ldtp.getobjectlist('frm桌面')<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/usr/lib/python2.7/site-packages/ldtp/client.py", line 70, in __call__<br>
    return self.__send(self.__name, args)<br>
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request<br>
    verbose=self.__verbose<br>
  File "/usr/lib/python2.7/site-packages/ldtp/client.py", line 190, in request<br>
    raise LdtpExecutionError(e.faultString.encode('utf-8'))<br>
ldtp.client_exception.LdtpExecutionError: Unable to find window "frm桌面"<br>
>>> ldtp.getwindowlist()<br>
[u'frm\u4e0b\u65b9\u6269\u5c55\u8fb9\u7f18\u9762\u677f', u'frm\u684c\u9762', 'frmcs2c@localhost:~']<br>
>>> ldtp.getobjectlist(u'frm\u684c\u9762')<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/usr/lib/python2.7/site-packages/ldtp/client.py", line 70, in __call__<br>
    return self.__send(self.__name, args)<br>
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request<br>
    verbose=self.__verbose<br>
  File "/usr/lib/python2.7/site-packages/ldtp/client.py", line 190, in request<br>
    raise LdtpExecutionError(e.faultString.encode('utf-8'))<br>
ldtp.client_exception.LdtpExecutionError: Unable to find window "frm桌面"<br>
<br>
The window name is got by using  getwindowlist(),please how to solve the problem?<br>
<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Cross platform GUI testing</div>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>Cobra - Windows GUI Automation tool - <a href="https://github.com/ldtp/cobra" target="_blank">https://github.com/ldtp/cobra</a><div>ATOMac - Mac GUI Automation tool - <a href="https://github.com/pyatom/pyatom" target="_blank">https://github.com/pyatom/pyatom</a></div><div><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a></div></div>
</div>