I want to fetch the following web element using selenium and python
<td class="letterbreak first">default</td>
And I want to find it based on the inner HTML text default. I can't use the class because there are other elements using the same class. I have tried:
driver.find_element(By.XPATH,"//*[contains(@innerHTML,'default')]")
But I get a NoSuchElementException.
Is it possible to find based on innerHTML? If so, how can I do it?