Skip to content

Commit

Permalink
Save a crash before switching to English language anywhere (will help…
Browse files Browse the repository at this point in the history
… to debug not finding Follow button)
  • Loading branch information
Alexander Mishchenko committed Oct 8, 2020
1 parent c4d43ce commit 553342b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/action_handle_blogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def _follow(device, username, follow_percentage):
else:
print(COLOR_FAIL + "Cannot find neither Follow button, nor Following button. Maybe not "
"English language is set?" + COLOR_ENDC)
save_crash(device)
switch_to_english(device)
raise LanguageChangedException()

Expand Down
1 change: 1 addition & 0 deletions src/action_unfollow.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def _do_unfollow(device, username, my_username, check_if_is_follower):
text='Following')
if not unfollow_button.exists():
print(COLOR_FAIL + "Cannot find Following button. Maybe not English language is set?" + COLOR_ENDC)
save_crash(device)
switch_to_english(device)
raise LanguageChangedException()
unfollow_button.click()
Expand Down
1 change: 1 addition & 0 deletions src/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def _navigate_to_search(device):

print(COLOR_FAIL + "Cannot find search tab neither in the tab bar, nor in the action bar. Maybe not English "
"language is set?" + COLOR_ENDC)
save_crash(device)
switch_to_english(device)
raise LanguageChangedException()

Expand Down

0 comments on commit 553342b

Please sign in to comment.