perf: 修复 chrome 部分元素定位失败的问题

pull/11587/head
Eric 1 year ago committed by 老广
parent 9367e79bcf
commit 886f977311

@ -1,3 +1,7 @@
#2023-09-18 Version 1.0
## Bug 修复
- 移除窗口最小化,避免造成部分页面元素定位失败
# 2023-09-04 Version 0.9
## 功能优化
- 进度条显示最大超时

@ -258,11 +258,11 @@ class AppletApplication(BaseApplication):
self.driver = webdriver.Chrome(options=self._chrome_options, service=service)
self.driver.implicitly_wait(10)
if self.app.asset.address != "":
self.driver.minimize_window()
ok = self.app.execute(self.driver)
if not ok:
print("执行失败")
self.driver.maximize_window()
def wait(self):
disconnected_msg = "Unable to evaluate script: disconnected: not connected to DevTools\n"
closed_msg = "Unable to evaluate script: no such window: target window already closed"

@ -1,6 +1,6 @@
name: chrome
display_name: "{{ 'Chrome Browser' | trans }}"
version: 0.9
version: 1.0
comment: "{{ 'Chrome Browser Open URL Page Address' | trans }}"
author: JumpServer Team
exec_type: python

Loading…
Cancel
Save