mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
4.1.0.0b14修复小问题
This commit is contained in:
parent
955c72d61c
commit
e7ab81092b
@ -14,4 +14,4 @@ from ._pages.chromium_page import ChromiumPage
|
|||||||
from ._pages.mix_page import MixPage
|
from ._pages.mix_page import MixPage
|
||||||
from ._pages.mix_page import MixPage as WebPage
|
from ._pages.mix_page import MixPage as WebPage
|
||||||
|
|
||||||
__version__ = '4.1.0.0b13'
|
__version__ = '4.1.0.0b14'
|
||||||
|
@ -194,6 +194,7 @@ class ChromiumFrame(ChromiumBase):
|
|||||||
def _onFrameDetached(self, **kwargs):
|
def _onFrameDetached(self, **kwargs):
|
||||||
"""同域变异域"""
|
"""同域变异域"""
|
||||||
self.browser._frames.pop(kwargs['frameId'], None)
|
self.browser._frames.pop(kwargs['frameId'], None)
|
||||||
|
ChromiumFrame._Frames.pop(kwargs['frameId'], None)
|
||||||
if kwargs['frameId'] == self._frame_id:
|
if kwargs['frameId'] == self._frame_id:
|
||||||
self._reload()
|
self._reload()
|
||||||
|
|
||||||
@ -411,7 +412,7 @@ class ChromiumFrame(ChromiumBase):
|
|||||||
:param timeout: 查找超时时间(秒)
|
:param timeout: 查找超时时间(秒)
|
||||||
:return: 上级元素对象
|
: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):
|
def prev(self, locator='', index=1, timeout=0, ele_only=True):
|
||||||
"""返回当前元素前面一个符合条件的同级元素,可用查询语法筛选,可指定返回筛选结果的第几个
|
"""返回当前元素前面一个符合条件的同级元素,可用查询语法筛选,可指定返回筛选结果的第几个
|
||||||
|
Loading…
x
Reference in New Issue
Block a user