title: Webscraping for all the combination of dropdown extract values
body: <p>I am trying to extract price information and h1 tag information from cars.com, there is a dropdown list to search the page.</p>
  
  <p>I want to select different models and search for price. But 'model' selection is dependent on 'make'. I have all combination of dropdown using selenium. 
  For each of the dropdown combination how can I get H1 information like "soup.find("H1")"</p>
  
  <p>code is as follows</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.support.ui import Select
  import time
  
  driver = webdriver.Chrome('C:/Users/chromedriver.exe')
  driver.get('https://www.cars.com/')
  time.sleep(4)
  
  selectMake = Select(driver.find_element_by_name("makeId"))
  
  
  time.sleep(2)
  
  
  selectModel = Select(driver.find_element_by_name("modelId"))
  
  data = []
  for makesOption in selectMake.options:
      makesText = makesOption.text
      selectMake.select_by_visible_text(makesText)
      time.sleep(1)
      selectModel = Select(driver.find_element_by_name("modelId"))
      for modelOption in selectModel.options:
          modelText = modelOption.text
          selectModel.select_by_visible_text(modelText)
          data.append([makesText,modelText])
  
  </code></pre>