From 696711f9ee28e24c3e53a351f4824c1cce5a5865 Mon Sep 17 00:00:00 2001 From: g1879 Date: Mon, 22 Feb 2021 16:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dclick=5Fat()=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/driver_element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrissionPage/driver_element.py b/DrissionPage/driver_element.py index 7344a98..84dfab5 100644 --- a/DrissionPage/driver_element.py +++ b/DrissionPage/driver_element.py @@ -345,7 +345,7 @@ class DriverElement(DrissionElement): return False - def click_at(self, x: int = None, y: int = None, by_js=True) -> None: + def click_at(self, x: int = None, y: int = None, by_js=False) -> None: """带偏移量点击本元素,相对于左上角坐标。不传入x或y值时点击元素中点 \n :param x: 相对元素左上角坐标的x轴偏移量 :param y: 相对元素左上角坐标的y轴偏移量