Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix one accidentally scroll down in unfollow process #15

Merged
merged 4 commits into from
Nov 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
forgot fo black ..
  • Loading branch information
mastrolube committed Nov 1, 2020
commit a1cd660fe1e16bfd2b0494c1f9c39dbe3c1b1fc4
4 changes: 2 additions & 2 deletions src/action_unfollow.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ def _do_unfollow(device, username, my_username, check_if_is_follower):
)
if not unfollow_button.exists() and attemp <= 1:
scrollable = device.find(
classNameMatches="androidx.viewpager.widget.ViewPager"
classNameMatches="androidx.viewpager.widget.ViewPager"
)
scrollable.scroll(DeviceFacade.Direction.TOP)
attemp += 1
else:
break

if not unfollow_button.exists():
print(
COLOR_FAIL
Expand Down