chrome/updater/test/service/win/ui.py
def ClickChildButtonWithText(parent_hwnd, button_text):
  """Clicks a child button window with given text.

  Args:
    parent_hwnd: HWND of the button parent.
    button_text: Button windows title.

  Returns:
    Whether button is clicked.
  """
  button_hwnd = FindWindow(button_text, 'Button', parent_hwnd)
  if button_hwnd:
    logging.debug('Found child button with: %s', button_text)
    ClickButton(button_hwnd)
    return True

  logging.debug('No button with [%s] found.', button_text)
  return False
Clicks a child button window with given text.

  Args:
    parent_hwnd: HWND of the button parent.
    button_text: Button windows title.

  Returns:
    Whether button is clicked.
  
Clicks a child button window with given text.
Clicks a child button window with given text .
def ClickChildButtonWithText(parent_hwnd, button_text):
  button_hwnd = FindWindow(button_text, 'Button', parent_hwnd)
  if button_hwnd:
    logging.debug('Found child button with: %s', button_text)
    ClickButton(button_hwnd)
    return True
  logging.debug('No button with [%s] found.', button_text)
  return False
def ClickChildButtonWithText ( parent_hwnd , button_text ) : button_hwnd = FindWindow ( button_text , 'Button' , parent_hwnd ) if button_hwnd : logging . debug ( 'Found child button with: %s' , button_text ) ClickButton ( button_hwnd ) return True logging . debug ( 'No button with [%s] found.' , button_text ) return False
Clicks a child button window with given text.
Clicks a child button window with given text .
"""Clicks a child button window with given text.

  Args:
    parent_hwnd: HWND of the button parent.
    button_text: Button windows title.

  Returns:
    Whether button is clicked.
  """
Whether button is clicked.
Whether button is clicked .
parent_hwnd
HWND of the button parent.
HWND of the button parent .
button_text
Button windows title.
Button windows title .