def get_team_names(driver):
    """
    gets the team names of all teams on current driver page
    """
    name_elements = driver.find_elements_by_class_name("name")
    team_names = [name.text for name in name_elements]
    return team_names