Trying to locate and click “reply” button using Python and Selenium
wait.until(EC.presence_of_element_located((By.XPATH, '//div[@data-testid="reply"]')))
reply_button = driver.find_element(By.XPATH, '//div[@data-testid="reply"]')
reply_button.click()
got error:
File “C:UsersSnake D. PlisskenDesktopProject BlackwallpythonProjectmain.py”, line 25, in follow_user
wait.until(EC.presence_of_element_located((By.XPATH, ‘//div[@data-testid=”reply”]’)))
File “C:UsersSnake D. PlisskenDesktopProject BlackwallpythonProject.venvLibsite-packagesseleniumwebdriversupportwait.py”, line 105, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
GetHandleVerifier [0x00007FF7929FEEB2+31554]
(No symbol) [0x00007FF792977EE9]
How to click this button using selenium ? what is wrong with my code ?