Instapy: --> Invalid Like Element! Randomly New issue

Created on 3 Jul 2018  路  2Comments  路  Source: timgrossmann/InstaPy

Expected Behavior

Like the Photo as normal

Current Behavior

--> Invalid Like Element!

Possible Solution (optional)

InstaPy configuration

Simple like photo on hashtag

This has been working for about 2 weeks now. Randomly today it just stopped working. It's not the account as it happens on more then one when testing.

Most helpful comment

@ajankuv seems that is changed the xpath, i'm trying right now with these new ones in like_util.py on like_image func.

like_xpath = "//button/span[text()='Like']/.."
unlike_xpath = "//button/span[text()='Unlike']"

# fetch spans fast
spans = [x.text.lower() for x in browser.find_elements_by_xpath("//article//button/span")]

All 2 comments

@ajankuv seems that is changed the xpath, i'm trying right now with these new ones in like_util.py on like_image func.

like_xpath = "//button/span[text()='Like']/.."
unlike_xpath = "//button/span[text()='Unlike']"

# fetch spans fast
spans = [x.text.lower() for x in browser.find_elements_by_xpath("//article//button/span")]

@marcomokastyle bingo that fixed it, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ingorichter picture ingorichter  路  3Comments

CharlesCCC picture CharlesCCC  路  3Comments

harrypython picture harrypython  路  3Comments

v77v picture v77v  路  3Comments

n0sw34r picture n0sw34r  路  3Comments