The behavior of Selenium can sometimes be tricky. You could use the XPath of the element or its parent to locate it. Keep in mind that the website developer might change class and ID names each time you request the webpage to make web scraping more difficult. If this is the case, you should consider using AI-based systems or rely solely on text-based scraping techniques to extract data from the webpage.