def status_button_check():
if(driver.find_element_by_xpath("//div[@role='button' and @title='Status']")):
s_b_c_status = "True"
else:
s_b_c_status = "False"
print(s_b_c_status)
status_button_check()
trying to check element if is there or not, but it gave me following error:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: "method":"xpath","selector":"//div[@role='button' and @title='Status']"}