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}));')