Closed sslash29 closed 1 year ago
@AmmarUchia sorry for late reply. As said before, Instagram is updating the website constantly.
That button accepts the cookies, please change the selector to:
/html/body/div[4]/div/div/button[2]
The code is all commented so you can troubleshoot the updates. Please right click on the element, inspect it and right click again to the HTML element -> Copy -> copy full XPath
The Bug selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[4]/div/div/button[1]"} (Session info: chrome=105.0.5195.102)
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop :