From 649bfa970bfd94df81b0eff78bc356ba3b7e5cdd Mon Sep 17 00:00:00 2001 From: cris Date: Wed, 16 Jul 2025 18:07:42 +0200 Subject: [PATCH] fix bug in bot to retrieve labs urls --- fluency/my-first-hack/utils/portswiggerbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fluency/my-first-hack/utils/portswiggerbot.py b/fluency/my-first-hack/utils/portswiggerbot.py index f27f84c4..cd3efed3 100644 --- a/fluency/my-first-hack/utils/portswiggerbot.py +++ b/fluency/my-first-hack/utils/portswiggerbot.py @@ -100,6 +100,8 @@ class Bot(): #Go to sections urls self.driver.get(f'{self.LABS_URL}{topic_name}') + self.__wait_random_time(min_seconds=5, max_seconds=7) + #Find all elements that have the topic prefix in the href links = self.driver.find_elements(By.CLASS_NAME, 'flex-columns')