title: Trying to web scrape a dynamic webpage, didn't get an error code. How can I verify "it's working"?
body: <p>I'm trying to webscrape a dynamic website with the following code below. My first few attempts returned some error messages like "return self.find_element(by=By.CLASS_NAME, value=name)" and some "Message: no such element: Unable to locate element". However, now it has been working but hasn't given me the results I want. What element should I be targeting? Is it possible something is wrong with my setup of selenium and chromedriver(had trouble with these initially too).</p>
  
  <pre><code>   from selenium import webdriver
     url = 'https://www.landers.ph/beverages/coffee.html'
     driverlocation = '/Users/username/Downloads/chromedriverdriver = 
     webdriver.Chrome(driverlocation)
     driver.get(url)
     products = driver.find_elements_by_class_name('ld-product-detail-info')
  
     for product in products:
         name = product.find_element_by_class_name('productTitle').text
         price = product.find_element_by_class_name('priceComponent').text
         print(name,price)
  </code></pre>