3.2.34浏览器最小化时也能响应模拟操作

This commit is contained in:
g1879 2023-10-23 17:53:25 +08:00
parent f9925e01fe
commit f991e3dd81
3 changed files with 6 additions and 5 deletions

View File

@ -100,6 +100,7 @@ class ChromiumBase(BasePage):
self._tab_obj.start() self._tab_obj.start()
self._tab_obj.DOM.enable() self._tab_obj.DOM.enable()
self._tab_obj.Page.enable() self._tab_obj.Page.enable()
self._tab_obj.call_method('Emulation.setFocusEmulationEnabled', enabled=True)
self._tab_obj.Page.frameStoppedLoading = self._onFrameStoppedLoading self._tab_obj.Page.frameStoppedLoading = self._onFrameStoppedLoading
self._tab_obj.Page.frameStartedLoading = self._onFrameStartedLoading self._tab_obj.Page.frameStartedLoading = self._onFrameStartedLoading

View File

@ -28,7 +28,7 @@ python 版本3.6 及以上
--- ---
**📖 使用文档:** [点击查看](http://g1879.gitee.io/drissionpagedocs) **📖 使用文档:** [点击查看](https://g1879.gitee.io/drissionpagedocs)
**交流 QQ 群:** 897838127[已满]、558778073 **交流 QQ 群:** 897838127[已满]、558778073
@ -36,7 +36,7 @@ python 版本3.6 及以上
# 🔥 新版预告 # 🔥 新版预告
查看下一步开发计划:[新版预告](http://g1879.gitee.io/drissionpagedocs/whatsnew/3_3/) 查看下一步开发计划:[新版预告](https://g1879.gitee.io/drissionpagedocs/whatsnew/3_3/)
--- ---
@ -112,13 +112,13 @@ python 版本3.6 及以上
# 🛠 使用文档 # 🛠 使用文档
[点击跳转到使用文档](http://g1879.gitee.io/drissionpage) [点击跳转到使用文档](https://g1879.gitee.io/drissionpage)
--- ---
# 🔖 版本历史 # 🔖 版本历史
[点击查看版本历史](http://g1879.gitee.io/drissionpagedocs/history/3.x/) [点击查看版本历史](https://g1879.gitee.io/drissionpagedocs/history/3.x/)
--- ---

View File

@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
setup( setup(
name="DrissionPage", name="DrissionPage",
version="3.2.33", version="3.2.34",
author="g1879", author="g1879",
author_email="g1879@qq.com", author_email="g1879@qq.com",
description="Python based web automation tool. It can control the browser and send and receive data packets.", description="Python based web automation tool. It can control the browser and send and receive data packets.",