title: Combining multiple for loops into CSV with selenium
body: <p>So, I'm trying to figure out how to scrape a directory site for some information and I'm having trouble combining two sets of get_elements into a writable CSV file. I have two lists of information <code>company_links_elements</code> and <code>company_address_elements</code>. Ultimately what I'd like to do is print the following information to a CSV. The problem is I don't know how to run two <code>for loops</code> together or <code>zip the arrays</code>. Can you help me figure out how to get a CSV with the following three rows: <code>company_name</code>, <code>company_url</code>, and <code>company_address</code>.</p>
  
  <pre><code>company_links_elements = driver.find_elements(By.XPATH, "//h3[@class='jss320 
  jss324 jss337 sc-gzOgki eucExu']/a")
  company_address_elements = driver.find_elements(By.XPATH, "//strong[@class='dtm-search-listing-address']")
  
  with open('links.csv', 'w') as file:
      writer = csv.writer(file)
      for company in company_links_elements:
          company_url = company.get_attribute("href")
          company_name = company.get_attribute("text")
          # NEED COMPANY ADDRESS HERE
          writer.writerow((company_name, company_url))
  
  driver.close()
  </code></pre>
  
  <p>Notice the company_address_elements... I don't know how to include that into the csv.writer to write the additional column for the company_address.</p>