ContributionsMost RecentMost LikesSolutionsAutomatically 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 methodShowMessage() 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 Re: Automatically close or click the ok button of the window that was created using ShowMessage() method 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 Re: How to avoid certain "Stop on Error" scenarios? This week I search to edit delay value inside the scrip, and works as well. I go search again the documentation to help you. Take a look on this reference (https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/misc/options/index.html#Run), but I believe you can't editthis property anymore .. StopOnError This property is obsolete. It is supported for backward compatibility only. Error handling > On errorproject property. Boolean. Read-only. If the project property is set toContinue running, returns false. Otherwise, returns true. Check this too (https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.html) reading I believe there is a way to edit with a plugin script, but I dont know if works in time of execution Two text boxes associated with a label caption, but in one the property is blank Hello, here is an image of my application showing the LabelCaption Última Alt. and the two fields that I would like to record the data: Analyzing through the object browser the two fields (date field and time field), I present here the prints of both. For the time field, it comes with a blank value in the label caption property I already tried to use the aqObject.SaveObjectSnapshotToFile () method to save the two fields in a text file and try to use another editor to compare, because as far as I know, the test complete itself does not provide resources to compare, in this case, two VCL Object and see what field properties are common or help to find the fields that are associating with that LabelCaption I already associated it a while ago with the Top property, which if I'm not mistaken is the vertical position of the window, however if it has two columns, this property will no longer help In such a situation, how to proceed? Thanks. EDIT: before someone ask me why? The goal is from a parent, search the children who have the property Label Caption = Última Alt.and store the property Text in a javascript object SolvedRe: What is the correct way to identify the unexpected window? Correct, I have to agree with you that the best way is to identify all or part of the text that identifies the window. And I've been doing it this way.But it doesn't always work or rather saying, it doesn't seem to be a very efficient way. However, by example the two are practically the same, only the last sentence in the window is different. And now for each of the windows, let me share its properties that partially contain the window text: ----------- In attention - error I can easily identify, but in attention - confirm blank spaces are changed by underline and need a special treatment in the property to check text. My search was to find some property common to all windows, but as can be seen there is not always a pattern.I guessthe best way is to use Find () from the main process by passing the parameters of the object property and raw value (like images above) and checking if the Find returned the object from the window or not. About not being an unexpected window. The normal part of my application is to work with it in ONLINE mode, however I already do a validation that if the window that is not communicating appears I do it in OFFLINE mode. My script changes the application to OFFLINE mode and then there are these various confirmation and error windows, which are expected, but I would like that when they appear, the test complete automatically clicks the OK button, or NO or CLOSE. What is the correct way to identify the unexpected window? In my application where I build my automated tests, several unexpected windows appear (error window, window to confirm by clicking OK, window to decide to click yes or no), I would like to gradually map these unexpected windows and deal with the function assigned there in GeneralEvents> OnUnexpectedWindow. Following the example of the documentation I have this role assigned to OnUnexpectedWindow: function GeneralEvents_OnUnexpectedWindow (Sender, Window, LogParams) { inside this function I would like to place the filters: (pseudo) if (windowAppeared == Confirmation) { >click OK< } if (windowAppeared == error) { >print log< >halt execution< } } In my case it is a very complex application. Is a good approach? I'm having trouble to identifying the windows, because some are external applications (window to print a pdf, timeout error connection to server). Windows don't always have the same properties, so what is the correct way to identify the unexpected window? in some I use Caption, in others I can't use Caption property and I'm using ObjectIdentifier Samples of windows: Thanks SolvedRe: Attach printscreen to Log.Checkpoint For those who copy the code and paste it in the testcomplete do not need to change the last parameter to Aliases.<application name>.Picture() Re: Attach printscreen to Log.Checkpoint I already try this, but get the error: Unexpected Token , I confused, I thought the method would be able to detect the type of the object, because besides the one you commented on, I tried to pass blank stringsand get runtime error. I didn't notice the other default values on the right side of the table. Log.Checkpoint("OK Message","","","",Sys.Desktop.Picture()) -- getJavaScript runtime error. I solved using null, and only the priority need the parameter: pmNormal or any integer and the picture object or method which return a picture object. Log.Checkpoint("OK Message",null,pmNormal,null,Aliases.myApp.Picture()) Log.Checkpoint(null,null,pmNormal,null,Aliases.myApp.Picture()) Attach printscreen to Log.Checkpoint The only way I can post a printscreen of the entire screen is this way: Log.Picture(Sys.Desktop.Picture(), "OK Message"); Reading the documentation of Checkpoint method (https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/checkpoint.html), I try this: Log.Checkpoint("OK Message",Sys.Desktop.Picture()), but nothing show in the Tab Picture what is the correct way to take a screenshot of the screen to put in the Log.Checkpoint () method? SolvedRe: Exist a way to use Find Method without PropNames, only with PropValues? My solution is check (...).grid.ActiveView.ViewData.RecordCount, and check if RecordCount == 0, I just curious about if is possible Find by Text in delphi desktop applications to improve my tests.