def query_for_data(driver): 
    """Grab all the relevant data on a jobs page. 
    
    Args: 
    ----
        driver: Selenium webdriver

    Return: 
    ------
        job_titles: list
        job_locations: list 
        posting_companies: list 
        dates: list
        hrefs: list 
    """

    job_titles = driver.find_elements_by_class_name('job-title')
    job_texts = driver.find_elements_by_class_name('job-text')
    posting_companies = job_texts[2::3]
    job_locations = job_texts[::3] 
    dates = driver.find_elements_by_css_selector('div .time-posted')
    hrefs = driver.find_elements_by_xpath("//h2//a")
        
    return job_titles, job_locations, posting_companies, dates, hrefs