4.1.0.0b14修复小问题

This commit is contained in:
g1879 2024-07-26 19:44:26 +08:00
parent 955c72d61c
commit e7ab81092b
2 changed files with 3 additions and 2 deletions

View File

@ -14,4 +14,4 @@ from ._pages.chromium_page import ChromiumPage
from ._pages.mix_page import MixPage
from ._pages.mix_page import MixPage as WebPage
__version__ = '4.1.0.0b13'
__version__ = '4.1.0.0b14'

View File

@ -194,6 +194,7 @@ class ChromiumFrame(ChromiumBase):
def _onFrameDetached(self, **kwargs):
"""同域变异域"""
self.browser._frames.pop(kwargs['frameId'], None)
ChromiumFrame._Frames.pop(kwargs['frameId'], None)
if kwargs['frameId'] == self._frame_id:
self._reload()
@ -411,7 +412,7 @@ class ChromiumFrame(ChromiumBase):
:param timeout: 查找超时时间
:return: 上级元素对象
"""
return self.frame_ele.parent(level_or_loc, index)
return self.frame_ele.parent(level_or_loc, index, timeout=timeout)
def prev(self, locator='', index=1, timeout=0, ele_only=True):
"""返回当前元素前面一个符合条件的同级元素,可用查询语法筛选,可指定返回筛选结果的第几个