Forum Discussion
TanyaYatskovska
Alumni
13 years agoHi Tim,
You can use the eval function instead of searching the target object (this might slow down the test execution):
function test()
{
var notepad, window, finished;
notepad = Sys.Process("notepad").FullName;
window = ".Window(\"Notepad\", \"Untitled - Notepad\", 1).Window(\"Edit\", \"\", 1)";
finished = notepad + window;
eval(finished).wText = "new text";
}