The easiest way to resize a window is to call its Position
method:
// JScript
var wnd = Sys.Process("notepad").Window("Notepad");
wnd.Position(150, 200, 600, 400); // top, left, width, height
質問
How can i use Drag () method to resize my WPF application window? I am working on TestComplete 9 using Jscript.
Thanks
解決
The easiest way to resize a window is to call its Position
method:
// JScript
var wnd = Sys.Process("notepad").Window("Notepad");
wnd.Position(150, 200, 600, 400); // top, left, width, height