def query_for_data(driver): 
    """Grab all relevant data on a jobs page. 

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

    job_titles = driver.find_elements_by_xpath(
            "//span[@itemprop='title']")
    job_locations = driver.find_elements_by_xpath(
        "//div[@itemprop='jobLocation']")
    posting_companies = driver.find_elements_by_xpath(
        "//span[@itemprop='name']")
    dates = driver.find_elements_by_xpath(
        "//time[@itemprop='datePosted']")
    hrefs = driver.find_elements_by_xpath("//div//article//div//h2//a")

    return job_titles, job_locations, posting_companies, dates, hrefs