Hi Wang,<div><br></div><div>You are the first customer to use Cobra outside VMware ;-) (atleast I know)</div><div><br></div><div>Can you please provide me a generic app with which I can reproduce this bug ?</div><div><br></div>

<div>Thanks</div><div>Nagappan<br><br><div class="gmail_quote">On Mon, May 28, 2012 at 7:14 PM, wangyubin <span dir="ltr">&lt;<a href="mailto:wangyubin@cn.fujitsu.com" target="_blank">wangyubin@cn.fujitsu.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Nagappan<br>
<br>
I want to use cobra to create my automatic test cases.<br>
but I found there is no APIs to access toolbar.<br>
<br>
please help me how to access the icon button which is in the toolbar.<br>
<br>
my code :<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
getobjectlist(&quot;frmMainWindow&quot;)<br>
# result [&quot;tbar0&quot;, &quot;tbar1&quot;.......]<br>
<br>
getchild(&quot;frmMainWindow&quot;, &quot;tbar0&quot;)<br>
# result [&quot;btn1&quot;, &quot;btn0&quot;, &quot;btn2&quot;......]<br>
<br>
getchild(&quot;frmMainWindow&quot;, &quot;tbar1&quot;)<br>
# result [&quot;btn2&quot;, &quot;btn3&quot;, &quot;btn0&quot;......]<br>
<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
when I try to access &quot;btn0&quot;, &quot;btn1&quot; and so on,  an Exception will pop up.<br>
<br>
my code :<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
getobjectinfo(&quot;frmMainWindow&quot;, btn1)<br>
Exception: Unable to find Object info: btn1<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Thanks<br>
wang yubin<br>
--------------------------------------------------<br>
wang yubin<br>
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)<br>
No. 6 Wenzhu Road, Nanjing, 210012, China<br>
TEL:+86-25-86630566-8516<br>
FUJITSU INTERNAL:7998-8551<br>
FAX:+86+25-83317685<br>
EMail:<a href="mailto:wangyubin@cn.fujitsu.com">wangyubin@cn.fujitsu.com</a><br>
--------------------------------------------------<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>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><br>

<a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a><br>
</div>