Skip to content

Commit

Permalink
fixing do_random_scrolling_in_request_page() for epic sunday
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmiglio committed Sep 22, 2024
1 parent 34fdcd7 commit 872875d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyclashbot/bot/request_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def request_state(vm_index, logger: Logger, next_state: str) -> str:

def do_random_scrolling_in_request_page(vm_index, logger, scrolls) -> None:
logger.change_status(status="Doing random scrolling in request page")
# scroll up to top
for _ in range(3):
scroll_up_on_left_side_of_screen(vm_index)

for _ in range(scrolls):
scroll_down_in_request_page(vm_index)
time.sleep(1)
Expand Down

0 comments on commit 872875d

Please sign in to comment.