Wondering if anyone can advise me on a performance issue i'm having.
On our GUI we have a static text box that may or may not appear depending on the type of transaction that is being processed.
As part of my test script if the box does not appear on the screen(which it won'ty do for 99% of the transactions we process), then I want to break out of my processing loop using the following code.
The issue is that adding this test in has seen my scripts go from processing a test every 4 to 5 seconds to now taking almost 30 seconds so has increased the runtime by almost 6 times what it was.
Is this just becasue exists isn't very performance friendly or is there some trick or different way of coding it to bring that delay down?
If it's any help, here are the attributes of the object being tested.
On our GUI we have a static text box that may or may not appear depending on the type of transaction that is being processed.
As part of my test script if the box does not appear on the screen(which it won'ty do for 99% of the transactions we process), then I want to break out of my processing loop using the following code.
Code:
If objObject.Exist = False then Exit Do
The issue is that adding this test in has seen my scripts go from processing a test every 4 to 5 seconds to now taking almost 30 seconds so has increased the runtime by almost 6 times what it was.
Is this just becasue exists isn't very performance friendly or is there some trick or different way of coding it to bring that delay down?
If it's any help, here are the attributes of the object being tested.
Code:
"Class Name:=Static",
"abs_x:=1535",
"abs_y:=704",
"attached text:=3rd Party ML Verified",
"enabled:=True",
"focused:=False",
"height:=20",
"hwnd:=6161660",
"nativeclass:=Static",
"object class:=Static",
"regexpwndclass:=Static",
"regexpwndtitle:=Yes",
"rightaligned:=False",
"righttoleftlayout:=False",
"righttoleftreading:=False",
"text:=Yes",
"va_name:=",
"visible:=True",
"width:=32",
"window id:=1210",
"windowextendedstyle:=516",
"windowstyle:=1342308352",
"x:=849",
"y:=89"