'can't get selenium to give me gpu prices

I'm new to web Scraping and can't get the prices i have found them in the terminal but the list appears empty despite this

from selenium import webdriver
from bs4 import BeautifulSoup

driver = webdriver.Chrome()


url = "https://www.kuantokusta.pt/p/6894201/msi-geforce-rtx-3080-ventus-3x-plus-oc-lhr-10gb-gddr6"

driver.get(url)
html = driver.page_source

doc = BeautifulSoup(html , "html.parser")
print(doc.prettify())
prices = doc.find_all(text="EUR")
print(prices)


Solution 1:[1]

There is a CSS class .prices and especially .old-price and .new-price.

So, you could use them as follow:

prices = doc.select('.prices')

or

prices = doc.select('.old-price')

or

prices = doc.select('.new-price')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alex Kosh