From 210ab2b3a414eb81118bebd1b836db0bd5a93d10 Mon Sep 17 00:00:00 2001 From: ll Date: Wed, 2 Jun 2021 14:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E5=90=8D=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyefun/seleniumUtil/seleniumUtil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyefun/seleniumUtil/seleniumUtil.py b/pyefun/seleniumUtil/seleniumUtil.py index 628feec..6d1e0e3 100644 --- a/pyefun/seleniumUtil/seleniumUtil.py +++ b/pyefun/seleniumUtil/seleniumUtil.py @@ -475,12 +475,12 @@ def 截图保存(self, 保存地址): return True @异常处理返回类型逻辑型 - def 截图BASE64(self): + def 截图base64(self): '以base64编码的字符串获取当前窗口的屏幕快照' return self.浏览器.get_screenshot_as_base64() @异常处理返回类型逻辑型 - def 截图二进制(self): + def 截图png(self): '以二进制数据获取当前窗口的屏幕快照。' return self.浏览器.get_screenshot_as_png() @@ -497,7 +497,7 @@ def 置JS超时时间(self, 秒数): return True @异常处理返回类型逻辑型 - def 置浏览器坐标_宽度高度(self, 左边=None, 顶边=None, 宽度=None, 高度=None): + def 置浏览器位置(self, 左边=None, 顶边=None, 宽度=None, 高度=None): '设置窗口的x,y坐标以及当前窗口的高度和宽度。' self.浏览器.set_window_rect(左边, 顶边, 宽度, 高度) return True