NisHera
6 years agoValued Contributor
Wait timeout problem
I need to look for pariculer window and if not visible click something.
Wrote following code in python...........
runAll.RefreshMappingInfo() Options.Run.Timeout=100 if not runAll.WaitAliasChild("Payrun_PayItems", -1).Exists: runAll.tvMain.wChildView[0].wChildView[0].ClickCell(0, 0) else: if not runAll.Payrun_PayItems.WaitProperty("VisibleOnScreen",True,0): runAll.tvMain.wChildView[0].wChildView[0].ClickCell(0, 0) Options.Run.Timeout=10000
I was suppose to waite in brown line for 100 milli sec ..but waiting for 30 sec
suppose to immidiatedly responce at green line but waite for around 15 sec
what is the problem...?
when debugging I could immidetely see values are there
this is a delphi desctop application.....
Try to disable option Tools|Options| Engines|NameMapping|Search for visible objects first.
I think it could help.