element = driver.find_element_by_xpath("/html/body/div[25]/div/div/div/div/div[1]/div/div/ul/li[3]/a/span/span").click();
I am trying this for the fb logout and giving me error .
NoSuchElementException: Message: Unable to locate element: {"method":"xpath","selector":"/html/body/div[25]/div/div/div/div/div[1]/div/div/ul/li[3]/a/span/span"}