mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
ChromiumTab增加close()方法;完善common注释
This commit is contained in:
parent
ae3abe79fe
commit
bac29f7564
@ -28,6 +28,10 @@ class ChromiumTab(ChromiumBase):
|
|||||||
self.retry_interval = self.page.retry_interval
|
self.retry_interval = self.page.retry_interval
|
||||||
self._page_load_strategy = self.page.page_load_strategy
|
self._page_load_strategy = self.page.page_load_strategy
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
"""关闭当前标签页"""
|
||||||
|
self.page.close_tabs(self.tab_id)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def rect(self):
|
def rect(self):
|
||||||
"""返回获取窗口坐标和大小的对象"""
|
"""返回获取窗口坐标和大小的对象"""
|
||||||
|
@ -24,6 +24,8 @@ class ChromiumTab(ChromiumBase):
|
|||||||
|
|
||||||
def _set_runtime_settings(self) -> None: ...
|
def _set_runtime_settings(self) -> None: ...
|
||||||
|
|
||||||
|
def close(self) -> None: ...
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def rect(self) -> ChromiumTabRect: ...
|
def rect(self) -> ChromiumTabRect: ...
|
||||||
|
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
from FlowViewer import Listener, RequestMan
|
from .session_element import make_session_ele as make_session_ele
|
||||||
|
|
||||||
from .session_element import make_session_ele
|
from .action_chains import ActionChains as ActionChains
|
||||||
|
from .commons.keys import Keys as Keys
|
||||||
from .action_chains import ActionChains
|
from .commons.by import By as By
|
||||||
from .commons.keys import Keys
|
from .commons.constants import Settings as Settings
|
||||||
from .commons.by import By
|
|
||||||
from .commons.constants import Settings
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user