diff --git a/DrissionPage/chromium_base.py b/DrissionPage/chromium_base.py index 0264207..c2c9400 100644 --- a/DrissionPage/chromium_base.py +++ b/DrissionPage/chromium_base.py @@ -904,7 +904,7 @@ class ChromiumBase(BasePage): h = right_bottom[1] - y vp = {'x': x, 'y': y, 'width': w, 'height': h, 'scale': 1} png = self.run_cdp_loaded('Page.captureScreenshot', format=pic_type, - captureBeyondViewport=False, clip=vp)['data'] + captureBeyondViewport=True, clip=vp)['data'] else: png = self.run_cdp_loaded('Page.captureScreenshot', format=pic_type)['data'] diff --git a/DrissionPage/chromium_element.py b/DrissionPage/chromium_element.py index afcb6d4..10ac389 100644 --- a/DrissionPage/chromium_element.py +++ b/DrissionPage/chromium_element.py @@ -518,8 +518,8 @@ class ChromiumElement(DrissionElement): while not self.run_js(js) and perf_counter() < end_time: sleep(.1) - self.scroll.to_see(center=True) - sleep(1) + # self.scroll.to_see(center=True) + # sleep(1) left, top = self.location width, height = self.size left_top = (left, top)