I'm trying to automate some screenscraping from the websitehttps://tulip.garden/lend
On the site, I've managed to locate the class 'lend-table', using:
options = Options()
options.headless = True
driver = webdriver.Chrome('/Users/MYNAME/Downloads/chromedriver 2', options=options)
driver.maximize_window()
driver.implicitly_wait(3)
URL = "https://tulip.garden/lend"
driver.get(URL)
driver.find_element_by_class_name('lend-table')
However, when trying to extract data deeper in this class, I am unable to. Specifically I am trying to scrape the classes (there are multiple) lend-table__row-item__cell-usd
.
But when trying to find it through the find_element_by_class_name()
function or the xpath method:
driver.find_element_by_xpath('//div[@class="lend-table__row-item__cell-usd"]')'
I get the same error message that Selenium is unable to locate the element:
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".lend-table__row-item__cell-usd"}
(Session info: headless chrome=103.0.5060.114)
Can someone help me out?