CoderFromHell
Power Member
- Mar 19, 2019
- 727
- 341
Alright so most of the code for the project Im working on is already written (in Python), I just need the xpath of the heart of a comment in the comment section. The xpath I use doesn't work, Im clearly doing something wrong. o.o
Im creating an Instagram bot in Selenium basically to like certain comments with other Instagram accounts, but Im unable to .click() on the xpath of Instagram's heart in the comment section of a certain comment. I really just need the correct xpath of the heart in Instagram's comment section, and I'll be done with this.
This is the xpath I've been using, that doesn't work.
//*[@id="react-root"]/section/main/div/div[1]/article/div[3]/div[1]/ul/div[2]/ul/div/li/div/span/div/button/svg'
I grabbed this xpath from the little heart on Instagram next to the link of the comment I choose to like
Im creating an Instagram bot in Selenium basically to like certain comments with other Instagram accounts, but Im unable to .click() on the xpath of Instagram's heart in the comment section of a certain comment. I really just need the correct xpath of the heart in Instagram's comment section, and I'll be done with this.
This is the xpath I've been using, that doesn't work.
//*[@id="react-root"]/section/main/div/div[1]/article/div[3]/div[1]/ul/div[2]/ul/div/li/div/span/div/button/svg'
I grabbed this xpath from the little heart on Instagram next to the link of the comment I choose to like