ContributionsMost RecentMost LikesSolutionsRe: ComboBox item selected ok but get an error anyway I solved this issue by using a script function (as suggested by Alex at Smartbear) to call the ComboBox's native method (SelectItemWithValue) instead of the TC method ClickItem that's added when recording the test. I had trouble finding the ComboBox with ObjectSpy to use as the object path in the script, but I found it using Point and Fix as suggested by Martha (I marked it as the solution, since it was the closest). That was necessary because the ComboBox only exists while the dropdown is open, and it closes when you click elsewhere, e.g. for the ObjectSpy drag. Alex explained that the TC ClickItem method, which I had used for the ComboBox item selection, first executes the click, then verifies that it went ok. But the ComboBox disappears in the object tree as soon as the selection is made, so it hangs while trying to verify. Re: ComboBox item selected ok but get an error anyway I deleted the ComboBox mapping under NameMapping.Sys.AspenHysys.HwndSource_PopupRoot.PopupRoot, and as a result the 4th item was no longer selected at the end if the test. Then after appending to the end of the test, selecting the 4th item (which restores the name mapping), the test once again selects the 4th item but waits indefinitely for the ComboBox. There's only the one ComboBox object in that branch of the name mapping. There are other ComboBox objects, but not under HwndSource_PopupRoot - they are in different UI controls. It might be relevant that this combo box is more complicated than usual. You can make several selections, each with a drop-down, instead of 1 selection with 1 drop-down. I attached a picture of what object spy shows for the (1st) drop-down, before the 4th item (Kerosene) is selected, and after it is selected (how it looks when TC is waiting for the ComboBox). The ComboBox doesn't appear in the object spy's output - I guess the ComboBox is what appears and opens when you click on the item. Re: ComboBox item selected ok but get an error anyway I tried using waitAliasChild as described, but the result was the same - it successfully selects the 4th of the ComboBox but then waits indefinitely for the Combobox. I gather there's no way to tell TestComplete that it doesn't need to wait for the ComboBox, since it has alread successfully selected the correct item? Re: ComboBox item selected ok but get an error anyway I added the breakpoint as described, stepping into the code with F11. Somehow as a side-effect of the step-by-step process, when TC clicks on the ComboBox, it fails to select the menu item (leaving none selected), and then the usual wait for the ComboBox proceeds. So without debugging, it selects the correct item, then waits indefinitely for the ComboBox, and with the debug breakpoint and step-by-step, it fails to select the item, then indefinitely waits for the ComboBox. Re: ComboBox item selected ok but get an error anyway I converted the test to script to use the debugger. I found that only the last line with ComboBox.ClickItem selects the menu item and causes the "Waiting for the ComboBox object" error. With the breakpoint on the last line (see image), it stops before selecting the item and waiting for the object. If I comment out the last line, it doesn't select the menu item or wait for the ComboBox object. Strange that it apparent;y executes ComboBox.ClickItem but then complains that it can't find ComboBox. Re: ComboBox item selected ok but get an error anyway Sorry, I meant to say "Kerosine", not Ethanol. Re: ComboBox item selected ok but get an error anyway When TC executes the ComboBox operation, I can see in the application UI that the 4th menu item "Ethanol" has been correctly selected (see attached image). But then TC says "Waiting for ComboBox object" and times out and logs the error. If I could somehow tell TC not to bother waiting for the ComboBox at that point, it would be great. Re: ComboBox item selected ok but get an error anyway I attached a snapshot of the KeyWord test steps up to the ClickItem operation. It shows the object path of the ComboBox. After the test runs and the operation fails, if I click "Highlight" with the application still running, it says it can't display the object. Re: ComboBox item selected ok but get an error anyway I turned off visualizer data collection during recording and test runs, re-recorded the ComboBox test step, and it still fails the same way. Now at least I understand the visualizer data collection doesn't affect test runs. ComboBox item selected ok but get an error anyway I have a test with a ComboBox "ClickItem" operation to select a ComboBox item, with this description: "Selects the 4 item of the 'ComboBox' combo box". The 4th item is always selected correctly, but the operation fails anyway. After selecting the correct ComboBox item, TC says "Waiting for the ComboBox object" and times out. It then says, "The control does not exist", and it logs an error. It can select the correct ComboBox item by integer index or by name, but with the same resulting error. The Test Visualizer image for this operation shows a blank combo box item instead of the actual item to be selected. Is this why it fails? If so, how can I tell TC not to care if the Visualizer image doesn't match? Or basically, how can I stop TC from failing this operation, since it succeeds in selecting the correct ComboBox item? Solved