From d44ebcb136247e76d705701d0e1f2145d92dd02e Mon Sep 17 00:00:00 2001 From: "Overlord.space" <7531551+KobaltMR@users.noreply.github.com> Date: Wed, 14 Jul 2021 23:00:26 +1000 Subject: [PATCH] Fix unicode support in slowly send keys methods (#907) Replace str_split with preg_split for support unicode --- src/Concerns/InteractsWithElements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/InteractsWithElements.php b/src/Concerns/InteractsWithElements.php index ca687248d..975342ac4 100644 --- a/src/Concerns/InteractsWithElements.php +++ b/src/Concerns/InteractsWithElements.php @@ -185,7 +185,7 @@ public function append($field, $value) */ public function appendSlowly($field, $value, $pause = 100) { - foreach (str_split($value) as $char) { + foreach (preg_split('//u', $value, -1, PREG_SPLIT_NO_EMPTY) as $char) { $this->append($field, $char)->pause($pause); }