ContributionsMost RecentMost LikesSolutionsRe: Can I use a regular expression for the index of a window?EUREKA!! I found a solution. In the name mapping, just don't use the index! Works! Thanks for you help SteveRe: Can I use a regular expression for the index of a window?Hi, Thanks for you help. I am really confused at this point. How would I use FindChile for a SwingObject? If you look at the previously attached PNG file, one of the parameters of FindChild is actually the index that keeps incrementing. Thanks SteveRe: Can I use a regular expression for the index of a window?Hi Stephanie, Attached is a png of the object browser image. The highlighted area is the index that keeps incrementing. Every time the window is open, without restarting the application, this value goes up by one. Nothing else about the window changes. And this is the only window open. Thanks SteveRe: Can I use a regular expression for the index of a window?Thank you Stephanie, I tried that but the field will not take anything but an integer. SteveRe: Continue script after an errorThank you Allen. That worked.Can I use a regular expression for the index of a window? Hi All, I would like to know how to use a regular express, for example “.*” to define the index of a window opened in my application. Every time this window is opened, the index of the window is incremented, making TestComplete unable to identify it after the first time the window is opened. If I stop and restart the application then open the window, the index is reset back to 1 and TestComplete can identify the window. Nothing else about the window changes. I don’t care what the index is, there can only be one instance of the window open at a time. I just need to be able to fill in some information on the window. Thank You Steve Continue script after an errorHi, I would like to find a way to continue a script after an error. Here is the code I have in my script. The script stops when the return value is 7. How can I set the stop on error flag to continue? Dim Value, strMessage Value = MsgBox ("Was Observation Panel Correct?", 3, "Observation") If Value = 7 Then strMessage =Inputbox("What is wrong with the Observation Panel","Observation Panel") Log.Error strMessage Else Log.Message "Observation Panel passed" End If Thank You SteveRe: Flat vs. Tree for Object tree model.Thanks Helen. I appreciate your quick responses. That statement generates a Microsoft VBScript error. I am having a lot more problems with the Tree vs Flat Object tree model. All of the scripts I have tried fail with the Flat model. If I create the exact same script using the Tree model, it works. I have been trying all week to get something figured out, to no avail. I am afraid that if we go with TestComplete, that I will be forced to use the horrendously long Tree model. For example, the first line is with the Flat model: Call Aliases.javaw.ChooseDomain.Domain.Keys(Project.Variables.Var11.Value("Domain")) This is the same line in the Tree model: Call Aliases.javaw.ChooseDomain.RootPane.null_layeredPane.null_contentPane.ProjectChooser.Panel.Panel.ComboBox.BasicComboBoxEditor_BorderlessTextField.Keys(Project.Variables.Login.Value("Domain")) This is the simple line. There are lines that have twice the attributes. I just do not understand why the Flat model does not work and the Tree model does. Thanks SteveRe: Flat vs. Tree for Object tree model.Thanks Helen This does not work if the Option tree model is set to Flat. It does work when the Option tree model is set to Tree. Why is this? Unfortunately when the Object tree model is set to Tree, this makes the Name Mapping almost unusable to me. On the application that I am trying to test, the Name Mapping tree can be 14 levels deep which makes writing scripts a nightmare. Thank you for your help. SteveFlat vs. Tree for Object tree model. Hi All, Hi All, I am trying to make the Name Mapping easier to use, I am trying the “Flat” Object tree model. What I am attempting to do is clear a field in a window by dragging and then setting the field to the correct value. This works in the “Tree” but not in the “Flat” mode of the Object tree model. In the “Flat” model the statements in the test script are?: Sub Test1 Dim TASJDialog Dim basicComboBoxEditor_BorderlessTextField TestedApps.TestedApp1.Run Set TASJDialog = Aliases.javaw.dialog0 Set basicComboBoxEditor_BorderlessTextField = TASJDialog.BasicComboBoxEditor_BorderlessTextField Call basicComboBoxEditor_BorderlessTextField.Drag(319, 5, -319, 0) Call basicComboBoxEditor_BorderlessTextField.Keys("This is the field to be set") TASJDialog.Button.ClickButton End Sub In the “Tree” model the statements in the test script are:: Sub Test1 Dim projectChooser Dim basicComboBoxEditor_BorderlessTextField TestedApps.TestedApp1.Run Set projectChooser = Aliases.javaw.dialog0.RootPane.null_layeredPane.null_contentPane.ProjectChooser Set basicComboBoxEditor_BorderlessTextField = projectChooser.Panel.Panel.ComboBox.BasicComboBoxEditor_BorderlessTextField Call basicComboBoxEditor_BorderlessTextField.Drag(319, 5, -319, 0) Call basicComboBoxEditor_BorderlessTextField.Keys("This is the field to be set") projectChooser.Panel1.Button.ClickButton End Sub In the “Flat” model, nothing is dragged. The cursor moves right to left just below the field I am trying to clear. The original values were 319, 5 -319, 0. I have changed them to everything from the original values to 0,0 0,0 with no effect. Is there something I am overlooking? Thanks for your help. Steve