From dd87912c88534b4befcc8308c3f7d9c8f33a99f8 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 15 May 2023 10:35:25 +0200 Subject: [PATCH] BrowserSteps - Support for float seconds (0.5 etc) --- changedetectionio/blueprint/browser_steps/browser_steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/blueprint/browser_steps/browser_steps.py b/changedetectionio/blueprint/browser_steps/browser_steps.py index cfb1a8d0..e8e20280 100644 --- a/changedetectionio/blueprint/browser_steps/browser_steps.py +++ b/changedetectionio/blueprint/browser_steps/browser_steps.py @@ -133,7 +133,7 @@ class steppable_browser_interface(): self.page.wait_for_timeout(1000) def action_wait_for_seconds(self, selector, value): - self.page.wait_for_timeout(int(value) * 1000) + self.page.wait_for_timeout(float(value.strip()) * 1000) def action_wait_for_text(self, selector, value): import json