title: How to extract all the title text for Graphics Card Posting on NewEgg using Selenium Python
body: <p>I am currently working on a Python script to pull information on RTX 3080 graphics cards and I am running into issues getting my script to grab each Graphics card title for each posting on the page. My script is as follows</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.chrome.options import Options
  from selenium.webdriver.common.by import By
  import time
  
  
  options = Options()
  
  PATH = 'C://Program Files (x86)//chromedriver.exe'
  
  driver = webdriver.Chrome(PATH)
  
  url = 'https://www.newegg.com/p/pl?d=RTX+3080'
  actions = ActionChains(driver)
  
  driver.maximize_window()
  driver.get(url)
  
  card_path = '/html/body/div[8]/div[3]/section/div/div/div[1]/div/dl[1]/dd/ul[2]/li/a'
  desktop_graphics_cards = driver.find_element(By.XPATH, card_path)
  desktop_graphics_cards.click()
  time.sleep(5)
  
  graphics_card = []
  shipping_cost = []
  price = []
  total_cost = []
  
  
  card_data = driver.find_elements(By.XPATH, '//div[@class = &quot;item-cell&quot;]')
  print(card_data)
  for card in card_data:
      graphics_card0 = card.find_element(By.XPATH, '//a[@title = &quot;View Details&quot;]').get_attribute('innerText')
      print(graphics_card0)
  </code></pre>
  <p>Whenever I run my script, it will give me the title of the first graphics card but repeat that same title for each of the postings of the remaining graphics card titles. For example, when I do print(len(card_data)), it returns 46 postings (The number of graphics cards for each &quot;item-cell&quot; on the page), but my print(graphics_card0) returns something like &quot;MSI Gaming GeForce RTX 3080 10GB GDDR6X PCI Express 4.0 ATX Video Card RTX 3080 GAMING Z TRIO 10G LHR&quot; 46 times. Any suggestions on how to proceed? I'll also attach pictures of the html below:</p>
  <p>Screenshot 1:</p>
  <p><img src="https://i.stack.imgur.com/Oz0Ku.png" alt="enter image description here" /></p>
  <p>Screenshot 2:</p>
  <p><img src="https://i.stack.imgur.com/Jy43L.jpg" alt="enter image description here" /></p>