fix: recover DxDataBook control redraw races
Core regression / Python core, intervention UI and release configuration (push) Failing after 4m30s
Core regression / JavaScript syntax (push) Successful in 7s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 4m36s
Core regression / JavaScript syntax (pull_request) Successful in 8s
Core regression / Python core, intervention UI and release configuration (push) Failing after 4m30s
Core regression / JavaScript syntax (push) Successful in 7s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 4m36s
Core regression / JavaScript syntax (pull_request) Successful in 8s
This commit is contained in:
1 parent
3187b304c6
commit
ad3ee4151c
7 files changed
+268
-7
No files matched your search
@@ -347,11 +347,18 @@ def load_databook_target(snapshot, report, target, *, controls, browse, filter_p
|
||||
if current is None:
|
||||
pair = None
|
||||
return []
|
||||
if current != pair:
|
||||
filter_part(current[1])
|
||||
pair = current
|
||||
load.update(list_handle=pair[0], filter_handle=pair[1])
|
||||
return list_rows(pair[0])
|
||||
try:
|
||||
if current != pair:
|
||||
filter_part(current[1])
|
||||
pair = current
|
||||
load.update(list_handle=pair[0], filter_handle=pair[1])
|
||||
return list_rows(pair[0])
|
||||
except Exception as error:
|
||||
if (getattr(error, 'winerror', None) != 1400 # ERROR_INVALID_WINDOW_HANDLE
|
||||
and getattr(error, 'hresult', None) != -2147220991): # UIA_E_ELEMENTNOTAVAILABLE
|
||||
raise
|
||||
pair = None
|
||||
return []
|
||||
|
||||
try:
|
||||
if index == 0 or controls() is None:
|
||||
@@ -1026,8 +1033,13 @@ def run_native(snapshot, report):
|
||||
query_message(handle, win32con.WM_SETTEXT, 0, metadata[3])
|
||||
|
||||
def current_library_rows(list_handle):
|
||||
return [(row, [text.window_text() for text in row.children(control_type="Text")])
|
||||
for row in desktop.window(handle=list_handle).descendants(control_type="ListItem")]
|
||||
try:
|
||||
return [(row, [text.window_text() for text in row.children(control_type="Text")])
|
||||
for row in desktop.window(handle=list_handle).descendants(control_type="ListItem")]
|
||||
except Exception:
|
||||
if win32gui.IsWindow(list_handle):
|
||||
raise
|
||||
return []
|
||||
|
||||
def dialogs():
|
||||
return databook_dialogs(win32gui, win32process, process_id, dialog, main_handle)
|
||||
|
||||
Reference in new issue
Block a user