From e2393b1bf9f0d3397a6da8e233287ae2bef2ab2b Mon Sep 17 00:00:00 2001 From: g1879 Date: Wed, 21 Feb 2024 11:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=89=E4=BA=9B=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=88=97=E8=A1=A8=E9=80=89=E6=8B=A9=E5=87=BA=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/_units/selector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrissionPage/_units/selector.py b/DrissionPage/_units/selector.py index be3e29d..6682f64 100644 --- a/DrissionPage/_units/selector.py +++ b/DrissionPage/_units/selector.py @@ -264,4 +264,4 @@ class SelectElement(object): def _dispatch_change(self): """触发修改动作""" - self._ele.run_js('this.dispatchEvent(new Event("change", {bubbles: true}));') + self._ele.run_js('this.dispatchEvent(new CustomEvent("change", {bubbles: true}));')