Here is a screenshot of the html structure:

I want to go through each item of league-list(every league-item) and look for the value aria-expanded.
Here is my code:
_1bet = 'https://1bet.com/ca/sports/tennis?time_range=all'
driver.get(_1bet) # enter the website
league1 = driver.find_elements_by_class_name('league-list')[0] # first league-item
league1.find_element_by_xpath(".//div[@class='league-title.d-flex.justify-content-between.align-items-center.collapsible']")
Selenium can't find any element and I don't understand why. for reference I was inspired by another post : Parsing nested elements using selenium not working - python