i trying write tool automatically install binary. basically, use comtypes , msaa interface interact installation windows , drive installation procedure. when window pops up, recursively enumerate elements on window, pick appropriate element (typically button) interact, , on. tool works fine. sometimes, may take long time in enumerating elements (could 1.5 mins window not complex). , problem seems timing related. doesn't happy time. have stuck on problem week. can help? please!!!
one possibility can think of is: while enumerating window, window destroyed target application, com mssed , fails further navigation. potential reason? can't convince myself on because window enumerated. if window disappears during enumeration, traversal of window element tree should fail, no?
try profiling script until issue occurs, through profiling information find out time being spent.
Comments
Post a Comment