My error:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"link text","selector":"entrar"}
I have the html below:
<a role="menuitem" href="/login" class="_yce4s5">
<div class="_hgs47m">
<div class="_10ejfg4u">
<div>
Entrar
</div>
</div>
</div>
</a>
I click on the then link entrar, the following code in selenium with python:
driver.implicitly_wait(10)
element = driver.find_element_by_link_text('Entrar')
element.click()
But It raises this NoSuchElementException.
driver.find_element_by_link_text('Entrar')# CapitalE