This is a weird one, I am trying to get product names and price from a website using selenium in Python. I am able to get the price but getting the unable to locate element error for product name.
I am using very similar code for both these items :
s3 = driver.find_element(By.CSS_SELECTOR, "span.weight-tile__PriceText-otzu8j-5.hJFddt")
print(s3.text)
s = driver.find_element(By.CSS_SELECTOR, "span.mobile-product-list-item__ProductName-zxgt1n-6.hBmGOx")
print(s.text)