title: Python / Selenium / Beautiful Soup not scraping desired elements
body: <p>I'm struggling to get this code to extract the desired information from one single page.</p>
  <p>I've tried all the usual selenium tactics and added a time delay. Hopefully, it's something simple.  I'm not getting any error messages.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  from bs4 import BeautifulSoup as bs
  from time import sleep
  
  options = Options()
  options.add_argument(&quot;--headless&quot;)
  options.add_argument(&quot;window-size=1400,600&quot;)
  user_agent = &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36&quot;
  options.add_argument(f'user-agent={user_agent}')
  capabilities = { 'chromeOptions':  { 'useAutomationExtension': False},'args': ['--disable-extensions']}
  browser = webdriver.Chrome(executable_path=r'/usr/local/bin/chromedriver',desired_capabilities = capabilities,options=options)
  
  url='https://groceries.asda.com/product/celery-spring-onions/asda-growers-selection-trimmed-spring-onions/41676'
  
  browser.get(url)
  sleep(3)
  source_data = browser.page_source
  bs_data = bs(source_data,&quot;html.parser&quot;)
  
  #product id
  try:
      product_id = bs_data.findfindAll('span', {'class': 'pdp-main-details__product-code'})       
      product_id = product_id.replace('Product code:','').strip()
  except:
      product_id = &quot;n/a&quot;
  
  #image address 
  try:
      for image in bs_data.find(&quot;div&quot;, {&quot;class&quot;:&quot;s7staticimage&quot;}):
          image_url = image.find('img')['src']
  except:
         image_url = &quot;n/a&quot;   
  
  #product description
  try:
      product_desc = bs_data.find('class',{'pdp-main-pdp-main-details__title'})
      product_desc = product_desc.get_text().strip()
  except:
      product_desc = &quot;n/a&quot;
  
  #product price
  try:
      product_price = bs_data.find('class',{'co-product__price pdp-main-details__price'})
      product_price = product_price.get_text().strip()
  except:
      product_price = &quot;n/a&quot;
  
  print (url,'|',image_url,'|',product_id,'|',product_desc,'|',product_price)        
  
  
  browser.quit()
  </code></pre>
  <p>Any assistance is greatly appreciated.</p>
  <p>Thanks</p>