From 184b3e88484ee00b096584bd849ae0a5738a18c8 Mon Sep 17 00:00:00 2001 From: Sascha Nitsch Date: Mon, 9 Sep 2024 17:18:38 +0200 Subject: [PATCH] fixed error detection --- scriptedbrowser/commands/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptedbrowser/commands/base.php b/scriptedbrowser/commands/base.php index 5869aed..28f8544 100644 --- a/scriptedbrowser/commands/base.php +++ b/scriptedbrowser/commands/base.php @@ -77,7 +77,7 @@ function mousemove($main, $control, $options) : bool { $element = $control->selectCSS($main->vars($options['parameter'])); $mouseOffset = $main->getMouseOffset(); - if ($element === []) { + if ($element === [] || array_key_exists('error', $element)) { return false; } $element = array_values($element)[0];