hello, <br clear="all"><span style="font-family: monospace;"><br>
I get the following error message when I try to run the test script.</span>
For this testing, I have generated the map file successfully and opened
the firefox before executing the python script. The LDTP version is
2.0, Firefox is 1.06 and Suse is 9.3. Is it necessary to upgrade some
of lib packages ? Thanks.<br>
<pre><span style="font-weight: bold;">Error Message:</span><br>Traceback (most recent call last):<br> File "firefox.py", line 9, in ?<br> selectmenuitem('frmnoname','mnuFile;mnuNewTab')<br>ldtp.error: Select Menu Item: Select action failed
ldtp.c 1256</pre>
<span style="font-family: monospace; font-weight: bold;">firefox.py:<br>
</span>#!/usr/bin/python<span style="font-family: monospace;"><br>
<br>
</span>from ldtp import *<span style="font-family: monospace;"><br>
</span>from ldtputils import *<span style="font-family: monospace;"><br>
</span>import string,sys,os,commands,time,filecmp<span style="font-family: monospace;"><br>
<br>
</span>initappmap('mozilla.map')<span style="font-family: monospace;"><br>
<br>
</span>selectmenuitem('frmnoname','mnuFile;mnuNewTab')<br>
<pre><span style="font-weight: bold;">mozilla.map: (</span><span style="font-weight: bold;"><span style="font-weight: bold;">I </span>extract the main part of it here </span><span style="font-weight: bold;">because it is too large)
</span><br>[frmnoname]<br>frmnoname={class=frame,parent=mozilla,child_index=0,label=no name}<br>txtnoname={class=text,parent=frmnoname,child_index=0,label=no name}<br>uknnoname={class=unknown,parent=frmnoname,child_index=1,label=no name}
<br>uknnoname1={class=unknown,parent=uknnoname,child_index=0,label=no name}<br>uknnoname2={class=unknown,parent=uknnoname1,child_index=0,label=no name}<br>txtnoname1={class=text,parent=frmnoname,child_index=2,label=no name}
<br>txtnoname2={class=text,parent=frmnoname,child_index=3,label=no name}<br>tbarnoname={class=tool_bar,parent=frmnoname,child_index=4,label=no name}<br>tbarnoname1={class=tool_bar,parent=tbarnoname,child_index=0,label=no name}
<br>mbrApplication={class=menu_bar,parent=tbarnoname1,child_index=0,label=Application}<br>mnuFile={class=menu,parent=mbrApplication,child_index=0,label=File}<br>mnuNewWindow={class=menu_item,parent=mnuFile,child_index=0,label=New Window}
<br>mnuNewTab={class=menu_item,parent=mnuFile,child_index=1,label=New Tab}<br><br><span style="font-family: arial,sans-serif;">Thanks, <br>fong<br></span></pre>