From 2ecf9b731c83b1788fa93070768c9a3594779b30 Mon Sep 17 00:00:00 2001 From: markm Date: Sun, 15 Mar 2009 18:47:42 +0000 Subject: [PATCH] * Add appropriate has_title = False to those classes whose text should not be treated as a title * Also add a tiny delay after each SendMessageTimeout in _performclick as it was just a bit too quick. --- pywinauto/controls/HwndWrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pywinauto/controls/HwndWrapper.py b/pywinauto/controls/HwndWrapper.py index fb9df53..827b8e4 100644 --- a/pywinauto/controls/HwndWrapper.py +++ b/pywinauto/controls/HwndWrapper.py @@ -150,6 +150,7 @@ class HwndWrapper(object): windowclasses = [] handle = None can_be_label = False + has_title = True #----------------------------------------------------------- def __new__(cls, handle): @@ -1619,6 +1620,8 @@ def _perform_click( #ctrl.PostMessage(msg, flags, click_point) #flags = 0 + time.sleep(Timings.sendmessagetimeout_timeout) + # wait until the thread can accept another message win32functions.WaitGuiThreadIdle(ctrl)