jyothi_kumari
10 years agoNew Contributor
Call to PerformClick method on Dotnet toolbar object stops execution.
I am calling "PerformClick" method on the DotNet tool bar object (class: WindowsForms10.Window.8.app.0.ea7f4a_r13_ad1), but it stops execution since this method doesn't return till I close the window which opened after clicking on toolbar button. To open the same window I can select a menu item or type the shortcut key, with these two methods execution doesn't go to unresponsive state, but when I click on the toolbar item execution stops. I have read the article “Testing Modal Windows - http://support.smartbear.com/viewarticle/55107/" and tried calling "Runner.CallObjectMethodAsync(object, “PerformClick”)" method and it works fine without stopping execution. But I would like to know why call for "PerformClick" method stops execution if there is no issue with the window being opened after clicking on the button as we are not facing this issue when we tried to open the same window by menu selection and by using shortcut key. Could you please help me in understanding the same? Or is there any generic way to identify the appearance of modal window on clicking the toolbar button so that we can avoid execution going to unresponsive state.