Skip to content

Commit

Permalink
test_taskbar: verify combobox in _toggle_notification_area_icons
Browse files Browse the repository at this point in the history
  • Loading branch information
airelil committed Feb 20, 2017
1 parent 22ad69f commit aa766ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pywinauto/unittests/test_taskbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ def _cabinetwclass_exist():
explorer.WaitCPUUsageLower(threshold=2, timeout=_ready_timeout)
window.type_keys(cmd_str, with_spaces=True, set_foreground=True)
# verfiy the text in the address combobox after type_keys finished
texts = window.AddressBandRoot.ComboBoxEx.texts()
if texts and texts[0] == cmd_str:
break
else:
l = pywinauto.actionlogger.ActionLogger()
l.log(texts)
# Send ESCs to remove the invalid text
window.type_keys("{ESC}" * 3)
cmbx_spec = window.AddressBandRoot.ComboBoxEx
if cmbx_spec.exists(timeout=_ready_timeout, retry_interval=_retry_interval):
texts = cmbx_spec.texts()
if texts and texts[0] == cmd_str:
break
# Send ESCs to remove the invalid text
window.type_keys("{ESC}" * 3)

# Send 'ENTER' separately, this is to make sure
# the window focus hasn't accidentally been lost
window.type_keys(
Expand Down

0 comments on commit aa766ae

Please sign in to comment.