From 5034516abf5d25a4e7e083cf18fafe2c9dc53172 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Fri, 2 Sep 2022 21:42:38 +0200 Subject: [PATCH] Instead of just waiting 7 seconds for the website to load, scroll down and then up in hopes of triggering more scripts --- Docker/run-analysis.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Docker/run-analysis.sh b/Docker/run-analysis.sh index 6747051..7908f5b 100755 --- a/Docker/run-analysis.sh +++ b/Docker/run-analysis.sh @@ -47,8 +47,18 @@ done <<< "$DOMAINS" click 1270 217 # the "trash" icon, so requests from plamienie don't appear in the screenshots load_website "$URL" "$URL" -sleep 7 # sometimes the consent popup needs a little time + +for i in 1 2 3 4 5 6 7 +do + xdotool mousemove 28 812 # left side, middle + xdotool click 5 click 5 click 5 click 5 click 5 click 5 # scroll down + sleep 1 +done; + +keycombo Control_L Home + echo "{\"current_action\": \"Strona $ORIGIN_DOMAIN wczytana. Przygotowywanie do analizy...\"}" + grab load_website open_network_inspector grab open_network_inspector