Radulepy / InstagramBot

Instagram AUTO Like and Comment Python BOT
GNU General Public License v2.0
134 stars 48 forks source link

It Doesen`t Work Anymore #18

Closed sslash29 closed 1 year ago

sslash29 commented 2 years ago

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 :

Radulepy commented 2 years 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]

Radulepy commented 2 years ago

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