<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have installed ldtp in centos 5.1 successfully.<br><br>I would like to use command step-by-step to print.<br><br>#firefox www.google.com&<br>#python <br>>>> from ldtp import *<br>>>> from ldtputils import *<br>>>> getwindowlist()<br>[u'frmGoogle-MozillaFirefox', u'frmroot@localhost:~/ldtp']<br>>>> selectmenuitem('frm*fox', 'mnuFile;mnuNewTab')<br>1<br>>>> selectmenuitem('frm*fox', 'mnuFile;mnuPrint')<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in ?<br> File "/usr/lib/python2.4/site-packages/ldtp.py", line 669, in selectmenuitem raise LdtpExecutionError (_responseStatus [1])<br>ldtplib.ldtplibutils.LdtpExecutionError: u'Unable to get the child menu item'<br><br>Pls kindly advise.<br><br>Best Rgds,<br></td></tr></table><br>
<hr size=1>Yahoo!香港提供網上安全攻略,教你如何防範黑客!<a href="http://hk.promo.yahoo.com/security/"><b>了解更多</b></a>