chrome/updater/test/service/win/ui.py
def FindWindowWithTitleAndText(title, text):
  """Checks if the any window has given title, and child window has the text.

  Args:
    title: Expected window title.
    text: Expected window text substring(in any child window), case-insensitive.

  Returns:
    A list how HWND that meets the search condition.
  """
  hwnds_title_matched = FindWindowsWithTitle(title)
  if not hwnds_title_matched:
    logging.info('No window has title: [%s].', title)

  hwnds = []
  for hwnd in hwnds_title_matched:
    if FindWindowsWithText(hwnd, text):
      hwnds.append(hwnd)
  return hwnds
Checks if the any window has given title, and child window has the text.

  Args:
    title: Expected window title.
    text: Expected window text substring(in any child window), case-insensitive.

  Returns:
    A list how HWND that meets the search condition.
  
Checks if the any window has given title, and child window has the text.
Checks if the any window has given title and child window has the text .
def FindWindowWithTitleAndText(title, text):
  hwnds_title_matched = FindWindowsWithTitle(title)
  if not hwnds_title_matched:
    logging.info('No window has title: [%s].', title)
  hwnds = []
  for hwnd in hwnds_title_matched:
    if FindWindowsWithText(hwnd, text):
      hwnds.append(hwnd)
  return hwnds
def FindWindowWithTitleAndText ( title , text ) : hwnds_title_matched = FindWindowsWithTitle ( title ) if not hwnds_title_matched : logging . info ( 'No window has title: [%s].' , title ) hwnds = [ ] for hwnd in hwnds_title_matched : if FindWindowsWithText ( hwnd , text ) : hwnds . append ( hwnd ) return hwnds
Checks if the any window has given title, and child window has the text.
Checks if the any window has given title and child window has the text .
"""Checks if the any window has given title, and child window has the text.

  Args:
    title: Expected window title.
    text: Expected window text substring(in any child window), case-insensitive.

  Returns:
    A list how HWND that meets the search condition.
  """
A list how HWND that meets the search condition.
A list how HWND that meets the search condition .
title
Expected window title.
Expected window title .
text
Expected window text substring(in any child window), case-insensitive.
Expected window text substring ( in any child window ) case - insensitive .