Answers for "selenium if statement python"

0

selenium if statement python

try:
    elem = driver.find_element_by_partial_link_text('Create Activity')
    if elem.is_displayed():
        elem.click() # this will click the element if it is there
        print("FOUND THE LINK CREATE ACTIVITY! and Clicked it!")
except NoSuchElementException:
    print("...")
Posted by: Guest on June-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language