chrome/test/mini_installer/launch_chrome.py
def WaitForWindow(process_id, class_pattern):
    """Waits until a window specified by |process_id| and class name shows up.

    Args:
        process_id: The ID of the process that owns the window.
        class_pattern: The regular expression pattern of the window class name.

    Returns:
        A boolean value indicating whether the specified window shows up within
        30 seconds.
    """
    start_time = time.time()
    while time.time() - start_time < 30:
        if chrome_helper.WindowExists([process_id], class_pattern):
            return True
        time.sleep(0.1)
    return False
Waits until a window specified by |process_id| and class name shows up.

    Args:
        process_id: The ID of the process that owns the window.
        class_pattern: The regular expression pattern of the window class name.

    Returns:
        A boolean value indicating whether the specified window shows up within
        30 seconds.
    
Waits until a window specified by |process_id| and class name shows up.
Waits until a window specified by |process_id| and class name shows up .
def WaitForWindow(process_id, class_pattern):
    start_time = time.time()
    while time.time() - start_time < 30:
        if chrome_helper.WindowExists([process_id], class_pattern):
            return True
        time.sleep(0.1)
    return False
def WaitForWindow ( process_id , class_pattern ) : start_time = time . time ( ) while time . time ( ) - start_time < 30 : if chrome_helper . WindowExists ( [ process_id ] , class_pattern ) : return True time . sleep ( 0.1 ) return False
Waits until a window specified by |process_id| and class name shows up.
Waits until a window specified by |process_id| and class name shows up .
"""Waits until a window specified by |process_id| and class name shows up.

    Args:
        process_id: The ID of the process that owns the window.
        class_pattern: The regular expression pattern of the window class name.

    Returns:
        A boolean value indicating whether the specified window shows up within
        30 seconds.
    """
A boolean value indicating whether the specified window shows up within
30 seconds.
A boolean value indicating whether the specified window shows up within 30 seconds .
process_id
The ID of the process that owns the window.
The ID of the process that owns the window .
class_pattern
The regular expression pattern of the window class name.
The regular expression pattern of the window class name .