Ask a Question

Wait timeout problem

SOLVED
NisHera
Valued 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

2019-11-11_15-15-15.png

this is a delphi desctop application.....

1 REPLY 1
Bobik
Frequent Contributor

Try to disable option Tools|Options| Engines|NameMapping|Search for visible objects first.

I think it could help.

cancel
Showing results for 
Search instead for 
Did you mean: