isDisplayed = driver.find_element_by_xpath("div").is_displayed()
count = 0
def isDisplayed():
if isDisplayed == True:
print("True")
else:
if 9 > count:
isDisplayed()
count = count +1
else:
exit()
Displayed olarak kullanım sağladığımda bazı durumlarda garip bir sorun yaşıyorum hocam, bu sebepten dolayı except kullanmak zorunda kalıyorum.