Hi Scott,<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 4:02 AM, Wang Qi, Scott <span dir="ltr"><<a href="mailto:wangqi.s@gmail.com">wangqi.s@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Nagappan,<br><br>I saw some inconsistency in the parameter when calling these two functions : hasstate () and doesmenuitemexist().<br><br>1) ldtp.doesmenuitemexist(windows_name, 'mnuFile;mnuCloseAll')<br><br>doesmenuitemexist () requires the full path which is the 'mnuFile;mnuCloseAll' menu.<br>
<br>2) ldtp.hasstate(windows_name, 'mnuCloseAll', ldtp.state.SENSITIVE)<br><br>hasstate () only requires the last node which is 'mnuCloseAll'.<br><br>Is this design deliberately as this?<br></blockquote><div>
<br>hasstate is a general function, which works for all object type. To work with menu, we have to follow the hierarchy. If its a requirement we can implement it on LDTPv2. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>The second question is that if 2 root menus has a submenu with the same name for example, 'mnuFile;mnuCloseAll' and 'mnuProject;mnuCloseAll'. How ldtp.hasstate() will return the status with input of 'mnuCloseAll'? Will it only return the first found mnu named "mnuCloseAll"? I did a simple experiment. It seems it indeed returns the attribute for the first mnu. So how to get the attribute for the 2nd sub menu item.<br>
</blockquote><div><br>'mnuCloseAll1' should return the state of it :)<br><br>Thanks<br>Nagappan <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Thanks<br><font color="#888888">Scott<br><br><br><br>
</font><br>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>