Skip to content

Commit

Permalink
Merge pull request InstaPy#824 from converge/734_bug_fix_unfollow_wit…
Browse files Browse the repository at this point in the history
…hout_ask

locate button xpath only if text is exactly the follow word
  • Loading branch information
timgrossmann authored Oct 27, 2017
2 parents 8662c92 + 03c605f commit 1b9642b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instapy/unfollow_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def follow_user(browser, follow_restrict, login, user_name):

try:
follow_button = browser.find_element_by_xpath(
"//*[contains(text(), 'Follow')]")
"//button[text()='Follow']")

# Do we still need this sleep?
sleep(2)
Expand Down

0 comments on commit 1b9642b

Please sign in to comment.