skip to Main Content

Html – Python selenium: nested element finding

I'm trying to write a function, which returns a list of elements from any level of nesting from the html, containing the word 'products' in its text, case insensitive. here is my function: def __find_elements(driver): return driver.find_elements(By.XPATH, "//*[contains(translate(descendant::text(), " "'ABCDEFGHIJKLMNOPQRSTUVWXYZ',…

VIEW QUESTION
Back To Top
Search