Forum Discussion

ricardo_nobre's avatar
11 years ago

Click on Devexpress ribbon barbutton item hangs testcomplete


Hi,



we're trying to open a modal window from a devexpress ribbon barbuttonitem, but testcomplete hangs until we close the modal window.



First we tried to open the window synchronously, then we read about doing it async, but the result seems to be the same (we're not performing a task that ends quickly and by itself, we're opening a dialog that will have many actions. If one action fails, we would like to proceed and not leave testcomplete hanging forever).



var   a =  Runner["CallObjectMethodAsync"](

    Sys["Process"]("TestCompleteRibbonTest")["WinFormsObject"]("Form1")["WinFormsObject"]("ribbonControl1")["Pages"]["Item"](0)["Groups"]["Item"](1)["ItemLinks"]["Item"](0)["Item"],

    "PerformClick");



Is there any way to stop the runner as soon as the window is opened so we can do all of our tasks and then close the window when we want to?



Thanks


1 Reply

  • Hi Ricardo,

     


    The CallObjectMethodAsync method usually works in this scenario. Play with the Playback | On unexpected window project settings.