title: Unable to scrape multiple room names with Selenium
body: <p>I have written code to scrape the hotel name (and eventually price) from <a href="https://www.hilton.com/en/search/hilton-honors/?query=London&amp;arrivalDate=2021-09-20&amp;departureDate=2021-09-30&amp;flexibleDates=false&amp;numRooms=1&amp;numAdults=1&amp;numChildren=0&amp;room1ChildAges=&amp;room1" rel="nofollow noreferrer">The Hilton</a>.</p>
  <p>I have used the class name to select the HTML block which represents where the hotel information is stored, and then used the XPATH to try and scrape the name of the hotel. However, it only outputs the name of the hotel specific to that XPATH, instead of all hotel names on that page. Is this XPATH specific to this hotel, or is there a different way to take all hotel names on that page.</p>
  <pre><code>from selenium import webdriver
  import time
  url = 'https://www.hilton.com/en/search/hilton-honors/?query=London&amp;arrivalDate=2021-09-20&amp;departureDate=2021-09-30&amp;flexibleDates=false&amp;numRooms=1&amp;numAdults=1&amp;numChildren=0&amp;room1ChildAges=&amp;room1'
  
      
  driver = webdriver.Chrome(executable_path='C:\\Users\\conor\\Desktop\\diss\\chromedriver.exe')
  driver.get(url)
  time.sleep(10)
  
  
  working = driver.find_elements_by_class_name('flex.flex-wrap.py-4.border-border.border-b')
  for work in working:
      name = work.find_element_by_xpath('//*[@id=&quot;hotel-LONCOCI&quot;]').text
      print(name)
  </code></pre>