I am trying to automate an windows application. This application has two list boxes. Upon clicking on one item of one of the list box, it will pop out a windows of properties of the item. In the properties windows, I need to select a particular tab (say tab5), and then select an item from the combo box on the tab.
In this process, the automation works perfectly fine sometimes, but hangs occasionally. The automation hangs to identify the combo box on tab5. sometimes. Other times, the automation hangs at a different position, but wherever there is a change in the window, the automation hangs.
If I introduce a delay of few seconds using Pause, it works. Can someone please suggest, where and all do I need to introduce delay, and what is the best way to introduce the delay? Though I use WaitforCreate Method, it doesn't work.