Automatically close or click the ok button of the window that was created using ShowMessage() method
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Automatically close or click the ok button of the window that was created using ShowMessage() method
Hello, I want autoclose the window that was created by method ShowMessage() from BuiltIn routines. Is there a way to do this? (https://support.smartbear.com/testcomplete/docs/reference/program-objects/builtin/showmessage.html)
function TestDialog()
{
// var i;
// i = MkSet(mbYes, mbYesToAll, mbNo, mbCancel);
// i = MessageDlg("Message text", mtConfirmation, i, 0);
BuiltIn.ShowMessage("Message text")
}
We did some validations through the video instead of checking the log itself, and it would be interesting to have a message at which stage of the test is being executed. But using this method forces some user to click the button. I tried to use the Spy feature, but testcomplete is blocked when window appear, I can only click on the OK and close buttons
Thx
- Labels:
-
Scripting
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
How is the object identified? Is it considered an overlapping window, an unexpected window? If we classify it as an unexpected window we could use the unexpected window event handler to click ok to continue our test. https://support.smartbear.com/testcomplete/docs/testing-with/running/handling-errors/unexpected-wind...
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot inspect the element as I mentioned. I even tried to simulate pressing Enter after the message. But it is not possible to open the spy tool or open the object browser. From the window you either click OK manually or not press pause or stop is possible
