Recording captures every character

Tags:
Question ID: 107580
0
0

When I record in uft, it is capturing each character on a separate line. So for example, If I type in a field, rather than capturing that set command on one line, it captures each character on a separate line. I can’t find a property that would control this setting. Is there some property that I am missing?
For example:

Window("Facets").Dialog("Logon").WinEdit("User Id").Type "U"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "U"
Window("Facets").Dialog("Logon").WinEdit("User Id").Type "F"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UF"
Window("Facets").Dialog("Logon").WinEdit("User Id").Type "T"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UFT"
Window("Facets").Dialog("Logon").WinEdit("User Id").Type "T"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UFTT"
Window("Facets").Dialog("Logon").WinEdit("User Id").Type "e"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UFTTe"
Window("Facets").Dialog("Logon").WinEdit("User Id").Type "s"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UFTTes"
Window("Facets").Dialog("Logon").WinEdit("User Id").Type "t"
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UFTTest"

Why doesn’t it just capture :
Window("Facets").Dialog("Logon").WinEdit("User Id").Set "UFTTest"

Marked as spam
Posted by (Questions: 6, Answers: 1)
Asked on April 21, 2017 1:15 pm
4 views
Answers (1)
0
Private answer

It looks like the object my be doing some sort of refresh after each character is typed, like building a string. Is this just one particular object that you could edit the script after recording a replace all of the recorded lines with just a single .SET statement with the entire string?

Marked as spam
Posted by (Questions: 2, Answers: 425)
Answered on April 28, 2017 4:54 pm
Yes, it turned out it was just one object. We were just starting, I feared it would be all, so no bog deal. As you said, I just edited after the fact. Sorry for panic mode :) Thank you for your response.
( at April 28, 2017 5:17 pm)