1try:
2 elem = driver.find_element_by_partial_link_text('Create Activity')
3 if elem.is_displayed():
4 elem.click() # this will click the element if it is there
5 print("FOUND THE LINK CREATE ACTIVITY! and Clicked it!")
6except NoSuchElementException:
7 print("...")
8