Ok, thanks for your help, let me explain it further.
Our company develop a plug-in in ms-ppt, I use Uicodedtest to do some automation testing, below is the test case designed by me.
If button1 is exist, program will click it, otherwise click button2, code is very easy.
if ( button1.exist )
{
mouse.click(button1)
}
else
{
mouse.click(button2)
}
After I run this cold, vs2010 take a long time to judge whether button1 is existing. So I don't know why. This is make me confused.
Thanks for your patient and help!