Hi Ara,<br><br>When I tried with Pidgin, I noticed the first menu item (which is in default system menu) was listed as &#39;mnuPidginInternetMessenger&#39; and the one under indicator-applet is displayed as &#39;mnuPidginInternetMessenger1&#39;, is that fine ?<br>


<br>So, you can use them as:<br><br>doesmenuitemexist(&#39;frmTopExpandedEdgePanel&#39;, &#39;mnuPidginInternetMessenger&#39;)<br>doesmenuitemexist(&#39;frmTopExpandedEdgePanel&#39;, &#39;mnuPidginInternetMessenger1&#39;)<br>


<br>Drawback here is, you will not be able to use with hierarchy.<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 5:01 AM, Ara Pulido <span dir="ltr">&lt;<a href="mailto:ara@ubuntu.com" target="_blank">ara@ubuntu.com</a>&gt;</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;">
Hello all,<br>
<br>
I am trying to write a test to check that if a menu item exists or not<br>
in the top panel. The problem is that the name is exactly the same that<br>
another one in the top panel that always exists.<br>
<br>
This is the structure:<br>
<br>
First match (always there):<br>
<br>
TOP PANEL<br>
-----&gt; Applications<br>
------------&gt; Internet<br>
-------------------&gt; Evolution Mail<br>
<br>
<br>
Second match (not always there and the one we want to check in the test):<br>
<br>
TOP PANEL<br>
------&gt; Embedded componet (embindicator-applet)<br>
---------------&gt; Evolution Mail<br>
<br>
<br>
The problem is that using doesmenuitemexists always returns 1, because<br>
it matches with the first one.<br>
<br>
Using invokemenu does not help, as it invokes the context menu of the<br>
embedded component, not the normal menu.<br>
<br>
Any ideas how to make this difference?<br>
<br>
Thanks,<br>
Ara.<br>
<br>
_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">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>
</blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a><br>