Flat 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