I am trying to interact with a web page with a script in python Selenium. Now I found a website with shadow-root. As founded on the web, I tried to use:
shadow_host1 = driver.find_element(By.CSS_SELECTOR, "[id ='bt-inner-page']")
shadow_root1 = driver.execute_script('return arguments[0].shadowRoot', shadow_host1)
elem = shadow_root1.find_element(By.CSS_SELECTOR, ".bt72 > svg:nth-child(1)")
The elem is the search button (see picture, red box). The website is "https://www.tg.casino/en/sports"
I cannot found the elem, the goal is to click on it.
Actually I am using Firefox as browser, seems that the access to shadow root is made (i don't have errors) but I am not capable to locate element (tried with XPATH, CSS_SELECTOR, CLASS_SELECTOR)