I have a problem clicking a button
.
driver.find_element_by_xpath("(.//*[normalize-space(text()) and normalize-space(.)='Editează'])[20]/following::a[1]").click()
And I receive this error:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"(.//*[normalize-space(text()) and normalize-space(.)='Editează'])[20]/following::a[1]"}
(Session info: chrome=73.0.3683.86)
Any ideas?