13 years ago
MSAAObject DoDefaultAction() method hangs playback
Hi,
I am automating a Microsoft Dynamics AX application and I need to clic a hLink (MSAAObject) and perform some actions on the opened dialog box. I used DoDefaultAction() method and it opens the dialog box. But at that point TestComplete cannot continue execution and hangs until the dialog is dismissed manually. I was able to launch other dialog boxes using the DoDefaultAction() and execution continued without any issues.
I read this in one of the forums: "This problem can be caused by the following: The DoDefaultAction action does not return control to TestComplete until the dialog is closed"
And a quote in MSDN: While accDoDefaultAction is supposed to return immediately, some implementations block the return. For example, if clicking a link displays a dialog, some implementations will block the return until the dialog is dismissed.
I would like to understand is this something like our development team implemented this object(hLink) that results DoDefaultAction action does not return control to TestComplete until the dialog is closed?
Please let me know if our development team can fix this issue, I can get it done. Would like to understand if this problem is with TestComplete or our application implementation?
Please let me know if you need any additional info to understand the issue better. Any help would be great.
I am automating a Microsoft Dynamics AX application and I need to clic a hLink (MSAAObject) and perform some actions on the opened dialog box. I used DoDefaultAction() method and it opens the dialog box. But at that point TestComplete cannot continue execution and hangs until the dialog is dismissed manually. I was able to launch other dialog boxes using the DoDefaultAction() and execution continued without any issues.
I read this in one of the forums: "This problem can be caused by the following: The DoDefaultAction action does not return control to TestComplete until the dialog is closed"
And a quote in MSDN: While accDoDefaultAction is supposed to return immediately, some implementations block the return. For example, if clicking a link displays a dialog, some implementations will block the return until the dialog is dismissed.
I would like to understand is this something like our development team implemented this object(hLink) that results DoDefaultAction action does not return control to TestComplete until the dialog is closed?
Please let me know if our development team can fix this issue, I can get it done. Would like to understand if this problem is with TestComplete or our application implementation?
Please let me know if you need any additional info to understand the issue better. Any help would be great.