From 872875d4aa821b8451783f662d545d2df5841703 Mon Sep 17 00:00:00 2001 From: Matt Main_PC Date: Sun, 22 Sep 2024 01:31:54 -0400 Subject: [PATCH] fixing do_random_scrolling_in_request_page() for epic sunday --- src/pyclashbot/bot/request_state.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pyclashbot/bot/request_state.py b/src/pyclashbot/bot/request_state.py index 2a2e07c68..33e1d141b 100644 --- a/src/pyclashbot/bot/request_state.py +++ b/src/pyclashbot/bot/request_state.py @@ -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)