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

Spyd3r0us picture Spyd3r0us  路  3Comments

Naramsim picture Naramsim  路  3Comments

rahulkapoor90 picture rahulkapoor90  路  3Comments

tibor picture tibor  路  3Comments

ediooo picture ediooo  路  3Comments