Forum Discussion

zelenskya's avatar
zelenskya
Occasional Contributor
14 years ago

Test execution hangs on standard Open file... dialog opening

Hello! I have a test in which menu item is clicked & standard Open file dialog is opened after that. Here's a piece of code:


10 var MenuItemLevel3 = MenuItemLevel2.DropDownItems.Item_2(l)



20 MenuItemLevel3.PerformClick()



30 is_found = true



40 break



The click in string 20 is successfully performed so that I have standard Open file dialog opened but execution just stops there while Open file dialog is opened (without any errors). So that string 30 is never reached. After closing of Open file dailog execution continues.



I tried to add WaitWindow for Open file dialog (



WaitWindow("#32770", "*", 1, 500)



) after string 30 but execution still never reaches it.



Please advice.