I'm trying to find a text and click, but I don't know what's going on nothing that I try is working.
I've already tried:
driver.find_element(By.XPATH("//*[contains(text(),'Retenção colocada pelo sistema para reter documentos fiscais que requerem confirmação eletrônica. ')]")).click()
and
driver.find_elements_by_xpath("//*[contains(text(), 'Retenção colocada pelo sistema para reter documentos fiscais que requerem confirmação eletrônica. ')]")
I get this error: 'str' object is not callable