I am trying to click on an element using Selenium but keep getting the error message "selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element {"method":"partial link text","selector":"foo"}" .
Here is the element I want to click:
<a href="#" onclick="javascript:toMove('0000172','c99','https://www.boo.com/usemn/co/UM_COJ_CIQ003.jsp','mainFrame','PT_FMJ_SFQ001.jsp');" onfocus="blur()">
foo
</a>
And here is the code I'm using in Selenium:
link = driver.find_element(By.PARTIAL_LINK_TEXT, "foo")