shine-jayakumar / insta-likecom-bot

Automates likes and comments on an instagram account or tag
MIT License
140 stars 30 forks source link

cannot locate element to like post or comment #88

Closed digitizesuccess closed 11 months ago

digitizesuccess commented 1 year ago
          I cloned the newest version and the issue is still persisting.

Originally posted by @digitizesuccess in https://github.com/shine-jayakumar/insta-likecom-bot/issues/87#issuecomment-1688580043

shine-jayakumar commented 1 year ago

Please share the logs because I am running the same version and it's working.

digitizesuccess commented 1 year ago

The bot likes some posts but cannot like others. On observation, I've noticed that some of the like elements are grayed out and the bot cannot locate them. However, if you just run the mouse over the post, the element, or heart, turns from gray to white and the bot has no issue locating the element. It throws the following error when the like element is grayed out and it cannot like the post. It seems to do the same thing with comments too. I am running version 3.0.3 and Chromedriver version 116.0.5845.96

[*] => [like]: Attempt - 3 Message: no such element: Unable to locate element: {"method":"xpath","selector":"div/div/span"} (Session info: chrome=116.0.5845.96) Stacktrace: 0 chromedriver 0x0000000101ad9638 chromedriver + 5002808 1 chromedriver 0x0000000101ad0a53 chromedriver + 4966995 2 chromedriver 0x0000000101681a57 chromedriver + 449111 3 chromedriver 0x00000001016c7d05 chromedriver + 736517 4 chromedriver 0x00000001016c7ec1 chromedriver + 736961 5 chromedriver 0x00000001016bb9f6 chromedriver + 686582 6 chromedriver 0x00000001016ee41d chromedriver + 893981 7 chromedriver 0x00000001016bb8b8 chromedriver + 686264 8 chromedriver 0x00000001016ee5ae chromedriver + 894382 9 chromedriver 0x0000000101709391 chromedriver + 1004433 10 chromedriver 0x00000001016ee1c3 chromedriver + 893379 11 chromedriver 0x00000001016b9df9 chromedriver + 679417 12 chromedriver 0x00000001016bafde chromedriver + 683998 13 chromedriver 0x0000000101a962d9 chromedriver + 4727513 14 chromedriver 0x0000000101a9b2de chromedriver + 4747998 15 chromedriver 0x0000000101a592c9 chromedriver + 4477641 16 chromedriver 0x0000000101a9c02d chromedriver + 4751405 17 chromedriver 0x0000000101a6f0ec chromedriver + 4567276 18 chromedriver 0x0000000101ab97f8 chromedriver + 4872184 19 chromedriver 0x0000000101ab99b7 chromedriver + 4872631 20 chromedriver 0x0000000101ac9a1f chromedriver + 4938271 21 libsystem_pthread.dylib 0x00007ff81be311d3 _pthread_start + 125 22 libsystem_pthread.dylib 0x00007ff81be2cbd3 thread_start + 15

digitizesuccess commented 1 year ago

any updates?

shine-jayakumar commented 11 months ago

v.3.0.4 out. Please check if the problem persists.